From 714fcc165ac9d611625f80015fc8eb7912de8eaa Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 7 Oct 2004 09:37:33 +0000 Subject: noop if we're disabled, and do some lifecycle stuff now, call 2004-10-07 Not Zed * e-plugin.c (epl_invoke): noop if we're disabled, and do some lifecycle stuff now, call e_plugin_lib_enable on the module if it exists. svn path=/trunk/; revision=27494 --- e-util/e-plugin.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'e-util/e-plugin.h') diff --git a/e-util/e-plugin.h b/e-util/e-plugin.h index 802469acb4..1ecc75b308 100644 --- a/e-util/e-plugin.h +++ b/e-util/e-plugin.h @@ -102,6 +102,13 @@ char *e_plugin_xml_content_domain(xmlNodePtr node, const char *domain); typedef struct _EPluginLib EPluginLib; typedef struct _EPluginLibClass EPluginLibClass; +/* The callback signature used for epluginlib methods */ +typedef void *(EPluginLibFunc)(EPluginLib *ep, void *data); +/* The setup method, this will be called when the plugin is + * initialised. In the future it may also be called when the plugin + * is disabled. */ +typedef int (EPluginLibEnableFunc)(EPluginLib *ep, int enable); + /** * struct _EPluginLib - * @@ -112,6 +119,9 @@ typedef struct _EPluginLibClass EPluginLibClass; * This is a concrete EPlugin class. It loads and invokes dynamically * loaded libraries using GModule. The shared object isn't loaded * until the first callback is invoked. + * + * When the plugin is loaded, and if it exists, "e_plugin_lib_enable" + * will be invoked to initialise the **/ struct _EPluginLib { EPlugin plugin; -- cgit v1.2.3