![]() | ![]() | ![]() | [Insert name here] Reference Manual | ![]() |
---|
#define PLUGIN_GENERIC typedef plugin_generic_t; #define plugin_name (p) #define plugin_name_len (p) #define plugin_author (p) #define plugin_author_len (p) #define plugin_contact (p) #define plugin_contact_len (p) #define plugin_desc (p) #define plugin_desc_len (p) #define plugin_set_name (p, str) #define plugin_set_author (p, str) #define plugin_set_contact (p, str) #define plugin_set_desc (p, str) int plugin_subscribe (plugin_generic_t *plugin); int plugin_unsubscribe (plugin_generic_t *plugin); int plugin_request_new_id (void);
int plugin_subscribe (plugin_generic_t *plugin);
Set plugin to be active.
The subscribe function specified in plugin_load_from_dir() is called for plugin registration.
plugin : | Pointer to a plugin. |
Returns : | 0 on success or -1 if an error occured. |
int plugin_unsubscribe (plugin_generic_t *plugin);
Set plugin to be inactive.
The unsubscribe function specified in plugin_load_from_dir() is called for plugin un-registration.
plugin : | Pointer to a plugin. |
Returns : | 0 on success, -1 if an error occured. |
<<< prelude-client-mgr | prelude-getopt-wide >>> |