| Top |
| #define | XPLAYER_PLUGIN_REGISTER() |
| #define | XPLAYER_PLUGIN_REGISTER_CONFIGURABLE() |
| char * | xplayer_plugin_find_file () |
| GtkBuilder * | xplayer_plugin_load_interface () |
| char ** | xplayer_get_plugin_paths () |
libpeas is used as a general-purpose architecture for adding plugins to Xplayer, with derived support for different programming languages.
The functions in xplayer-dirs.h are used to allow plugins to find and load files installed alongside the plugins, such as UI files.
#define XPLAYER_PLUGIN_REGISTER(TYPE_NAME, TypeName, type_name)
Registers a plugin with the Xplayer plugin system, including registering the type specified in the parameters and declaring its activate and deactivate functions.
#define XPLAYER_PLUGIN_REGISTER_CONFIGURABLE(TYPE_NAME, TypeName, type_name)
Registers a configurable plugin with the Xplayer plugin system, including registering the type specified in the parameters and declaring its activate and deactivate and widget creation functions.
char * xplayer_plugin_find_file (const char *plugin_name,const char *file);
Finds the specified file
by looking in the plugin paths
listed by xplayer_get_plugin_paths() and then in the system
Xplayer data directory.
This should be used by plugins to find plugin-specific resource files.
GtkBuilder * xplayer_plugin_load_interface (const char *plugin_name,const char *name,gboolean fatal,GtkWindow *parent,gpointer user_data);
Loads an interface file (GtkBuilder UI file) for a plugin, given its filename and assuming it's installed in the plugin's data directory.
This should be used instead of attempting to load interfaces manually in plugins.