aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-plugin.h
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-05-25 18:51:36 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-05-25 18:51:36 +0800
commit5d1ad7fc3d886d30f6c33852d6c481d48edaaf11 (patch)
treecd897222a57dc5c92cf35fcdf249009f9fe3ae59 /e-util/e-plugin.h
parentb4a3d3cb49861ba70136e3fa58ab0c3e90cae8b3 (diff)
downloadgsoc2013-evolution-5d1ad7fc3d886d30f6c33852d6c481d48edaaf11.tar
gsoc2013-evolution-5d1ad7fc3d886d30f6c33852d6c481d48edaaf11.tar.gz
gsoc2013-evolution-5d1ad7fc3d886d30f6c33852d6c481d48edaaf11.tar.bz2
gsoc2013-evolution-5d1ad7fc3d886d30f6c33852d6c481d48edaaf11.tar.lz
gsoc2013-evolution-5d1ad7fc3d886d30f6c33852d6c481d48edaaf11.tar.xz
gsoc2013-evolution-5d1ad7fc3d886d30f6c33852d6c481d48edaaf11.tar.zst
gsoc2013-evolution-5d1ad7fc3d886d30f6c33852d6c481d48edaaf11.zip
Removed, these are now implemented as a plugin.
2005-05-25 Not Zed <NotZed@Ximian.com> * e-plugin-mono.[ch]: Removed, these are now implemented as a plugin. * e-plugin.c (ep_load_plugin): separate out plugin xml loading code from the loading loop. If a plugin type doesn't exist, then save it in a list for later checking. (ep_load): call above to do the work. (e_plugin_register_type): check the pending doc list, if any plugins now have a type, load them. (e_plugin_type_hook_get_type): a plugin hook for registering new plugin types ('loaders') at runtime. svn path=/trunk/; revision=29412
Diffstat (limited to 'e-util/e-plugin.h')
-rw-r--r--e-util/e-plugin.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/e-util/e-plugin.h b/e-util/e-plugin.h
index efc53d5108..7e4bfbc24b 100644
--- a/e-util/e-plugin.h
+++ b/e-util/e-plugin.h
@@ -247,4 +247,27 @@ void e_plugin_hook_enable(EPluginHook *eph, int state);
guint32 e_plugin_hook_mask(xmlNodePtr root, const struct _EPluginHookTargetKey *map, const char *prop);
guint32 e_plugin_hook_id(xmlNodePtr root, const struct _EPluginHookTargetKey *map, const char *prop);
+/* ********************************************************************** */
+
+/* EPluginTypeHook lets a plugin register a new plugin type.
+ <hook class="org.gnome.evolution.plugin.type:1.0">
+ <plugin-type get-type="e_plugin_mono_get_type/>
+ </hook>
+*/
+typedef struct _EPluginTypeHook EPluginTypeHook;
+typedef struct _EPluginTypeHookClass EPluginTypeHookClass;
+
+struct _EPluginTypeHook {
+ EPluginHook hook;
+
+ char *get_type;
+ guint idle;
+};
+
+struct _EPluginTypeHookClass {
+ EPluginHookClass hook_class;
+};
+
+GType e_plugin_type_hook_get_type(void);
+
#endif /* ! _E_PLUGIN_H */