![]() |
![]() |
![]() |
Peas Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define PEAS_TYPE_PLUGIN_INFO #define PEAS_PLUGIN_INFO (obj) PeasPluginInfo; GType peas_plugin_info_get_type (void
); gboolean peas_plugin_info_is_loaded (const PeasPluginInfo *info
); gboolean peas_plugin_info_is_available (const PeasPluginInfo *info
); const gchar * peas_plugin_info_get_module_name (const PeasPluginInfo *info
); const gchar * peas_plugin_info_get_module_dir (const PeasPluginInfo *info
); const gchar * peas_plugin_info_get_data_dir (const PeasPluginInfo *info
); const gchar * peas_plugin_info_get_name (const PeasPluginInfo *info
); const gchar * peas_plugin_info_get_description (const PeasPluginInfo *info
); const gchar ** peas_plugin_info_get_authors (const PeasPluginInfo *info
); const gchar * peas_plugin_info_get_website (const PeasPluginInfo *info
); const gchar * peas_plugin_info_get_copyright (const PeasPluginInfo *info
); const gchar * peas_plugin_info_get_version (const PeasPluginInfo *info
); gint peas_plugin_info_get_iage (const PeasPluginInfo *info
); const GHashTable * peas_plugin_info_get_keys (const PeasPluginInfo *info
); void peas_plugin_info_set_visible (PeasPluginInfo *info
,gboolean visible
); gboolean peas_plugin_info_get_visible (const PeasPluginInfo *info
);
typedef struct _PeasPluginInfo PeasPluginInfo;
Boxed type for the information related to a plugin.
gboolean peas_plugin_info_is_loaded (const PeasPluginInfo *info
);
Check if the plugin is loaded.
|
A PeasPluginInfo. |
Returns : |
TRUE if the plugin is loaded.
|
gboolean peas_plugin_info_is_available (const PeasPluginInfo *info
);
Check if the plugin is available. A plugin is marked as not available when there is no loader available to load it, or when there has been an error when trying to load it previously.
|
A PeasPluginInfo. |
Returns : |
TRUE if the plugin is available.
|
const gchar * peas_plugin_info_get_module_name (const PeasPluginInfo *info
);
Gets the module name.
|
A PeasPluginInfo. |
Returns : |
the module name. |
const gchar * peas_plugin_info_get_module_dir (const PeasPluginInfo *info
);
Gets the module directory.
|
A PeasPluginInfo. |
Returns : |
the module directory. |
const gchar * peas_plugin_info_get_data_dir (const PeasPluginInfo *info
);
Gets the data dir of the plugin.
|
A PeasPluginInfo. |
Returns : |
the plugin's data dir. |
const gchar * peas_plugin_info_get_name (const PeasPluginInfo *info
);
Gets the name of the plugin.
|
A PeasPluginInfo. |
Returns : |
the plugin's name. |
const gchar * peas_plugin_info_get_description (const PeasPluginInfo *info
);
Gets the description of the plugin.
|
A PeasPluginInfo. |
Returns : |
the plugin's description. |
const gchar ** peas_plugin_info_get_authors (const PeasPluginInfo *info
);
Gets a NULL-terminated array of strings with the authors of the plugin.
|
A PeasPluginInfo. |
Returns : |
the plugin's author list. |
const gchar * peas_plugin_info_get_website (const PeasPluginInfo *info
);
Gets the website of the plugin.
|
A PeasPluginInfo. |
Returns : |
the plugin's associated website. |
const gchar * peas_plugin_info_get_copyright (const PeasPluginInfo *info
);
Gets the copyright of the plugin.
|
A PeasPluginInfo. |
Returns : |
the plugin's copyright information. |
const gchar * peas_plugin_info_get_version (const PeasPluginInfo *info
);
Gets the version of the plugin.
|
A PeasPluginInfo. |
Returns : |
the plugin's version. |
gint peas_plugin_info_get_iage (const PeasPluginInfo *info
);
Gets the interface age of the plugin.
|
A PeasPluginInfo. |
Returns : |
the interface age of the plugin or 0 if not known.
|
const GHashTable * peas_plugin_info_get_keys (const PeasPluginInfo *info
);
Gets a hash table of string keys present and GValue values, present in the plugin information file, but not handled by libpeas. Note that libpeas only handles booleans and strings, and that strings that are recognised as booleans, as done by g_key_file_get_boolean, will be of boolean type.
|
A PeasPluginInfo. |
Returns : |
a GHashTable of string keys and GValue values. Do not free or destroy any data in this hashtable. |
void peas_plugin_info_set_visible (PeasPluginInfo *info
,gboolean visible
);
Sets whether the plugin should be visible in the plugin manager.
|
A PeasPluginInfo. |
|
visibility of the plugin |
gboolean peas_plugin_info_get_visible (const PeasPluginInfo *info
);
Gets the visibility of the plugin.
|
A PeasPluginInfo. |
Returns : |
TRUE if the plugin should be visible, FALSE
if not.
|