00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __CTRLPROXY_PLUGINS_H__
00021 #define __CTRLPROXY_PLUGINS_H__
00022
00031 struct plugin {
00033 GModule *module;
00035 void *data;
00037 struct plugin_ops *ops;
00038 };
00039
00040
00041 G_MODULE_EXPORT struct plugin *load_plugin(const char *dir, const char *name);
00042 G_MODULE_EXPORT gboolean plugin_loaded(const char *name);
00043 G_MODULE_EXPORT GList *get_plugin_list(void);
00044
00045 #if defined(_WIN32) && !defined(CTRLPROXY_CORE_BUILD)
00046 G_MODULE_EXPORT gboolean init_plugin(struct plugin *p);
00047 G_MODULE_EXPORT gboolean load_config(struct plugin *p, xmlNodePtr);
00048 G_MODULE_EXPORT gboolean save_config(struct plugin *p, xmlNodePtr);
00049 G_MODULE_EXPORT const char name_plugin[];
00050 #pragma comment(lib,"ctrlproxy.lib")
00051 #endif
00052
00053 #endif