![]() |
![]() |
![]() |
Thunar Extensions Reference Manual | ![]() |
---|
Providers are ThunarxProviderPlugins loaded from shared libraries
installed in $libdir/thunarx-2/
. The shared libraries are linked against the
thunarx-2
library.
The extensions must provide three public functions, thunar_extension_initialize()
,
thunar_extension_shutdown()
and thunar_extension_list_types()
.
thunar_extension_initialize()
is passed a ThunarxProviderPlugin
object, and is responsible to register all GTypes required by the extension. thunar_extension_shutdown()
should
perform any extension-specific shutdown required prior to unloading the extension. thunar_extension_list_types()
returns an array of GTypes that represent the types of the providers exported by the extension. Thunar will instantiate
objects of those types when needed.