![]() |
![]() |
![]() |
Peas Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
PeasExtensionSet; PeasExtensionSetClass; gboolean peas_extension_set_call (PeasExtensionSet *set
,const gchar *method_name
,...
); gboolean peas_extension_set_call_valist (PeasExtensionSet *set
,const gchar *method_name
,va_list args
); PeasExtensionSet * peas_extension_set_new (PeasEngine *engine
,GType exten_type
);
"engine" PeasEngine* : Read / Write / Construct Only "extension-type" GType* : Read / Write / Construct Only
A PeasExtensionSet is an object which proxies method calls to a set of actual extensions. The application writer will use these objects in order to call methods on several instances of an actual extension exported by all the currently loaded plugins.
PeasExtensionSet will automatically track loading and unloading of the plugins, and signal appearance and disappearance of new extension instances. You should connect to those signals if you wish to call specific methods on loading or unloading time, as it is typically the case for PeasActivatable extensions.
typedef struct _PeasExtensionSet PeasExtensionSet;
The PeasExtensionSet structure contains only private data and should only be accessed using the provided API.
typedef struct { GObjectClass parent_class; /* Virtual public methods */ gboolean (*call) (PeasExtensionSet *set, const gchar *method, va_list args); /* Signals */ void (*extension_added) (PeasExtensionSet *set, PeasPluginInfo *info, PeasExtension *exten); void (*extension_removed) (PeasExtensionSet *set, PeasPluginInfo *info, PeasExtension *exten); } PeasExtensionSetClass;
gboolean peas_extension_set_call (PeasExtensionSet *set
,const gchar *method_name
,...
);
Call a method on all the PeasExtension instances contained in set
.
See peas_extension_call()
for more information.
|
A PeasExtensionSet. |
|
the name of the method that should be called. |
|
arguments for the method. |
Returns : |
TRUE on successful call.
|
gboolean peas_extension_set_call_valist (PeasExtensionSet *set
,const gchar *method_name
,va_list args
);
Call a method on all the PeasExtension instances contained in set
.
See peas_extension_call_valist()
for more information.
|
A PeasExtensionSet. |
|
the name of the method that should be called. |
|
the arguments for the method. |
Returns : |
TRUE on successful call.
|
PeasExtensionSet * peas_extension_set_new (PeasEngine *engine
,GType exten_type
);
Create an ExtensionSet for all the exten_type
extensions defined in
the plugins loaded in engine
.
|
A PeasEngine. |
|
the extension GType. |
"engine"
property"engine" PeasEngine* : Read / Write / Construct Only
The PeasEngine this set is attached to.
"extension-added"
signalvoid user_function (PeasExtensionSet *peasextensionset, PeasPluginInfo *arg1, PeasExtension *arg2, gpointer user_data) : Run Last
"extension-removed"
signalvoid user_function (PeasExtensionSet *peasextensionset, PeasPluginInfo *arg1, PeasExtension *arg2, gpointer user_data) : Run Last