00001 #ifndef ICD_PLUGIN_H 00002 #define ICD_PLUGIN_H 00003 00017 #include <glib.h> 00018 00026 typedef gboolean (*icd_plugin_load_cb_fn) (const gchar* module_name, 00027 void *handle, 00028 gpointer init_function, 00029 gpointer cb_data); 00030 00031 gboolean icd_plugin_load (const char *filename, 00032 const char *name, 00033 const char *init_name, 00034 icd_plugin_load_cb_fn cb, 00035 gpointer cb_data); 00036 00037 gboolean icd_plugin_load_all (const char *plugindir, 00038 const char *prefix, 00039 const char *init_name, 00040 icd_plugin_load_cb_fn cb, 00041 gpointer cb_data); 00042 00043 gboolean icd_plugin_load_list (const char *plugindir, 00044 GSList *plugin_list, 00045 const char *init_name, 00046 icd_plugin_load_cb_fn cb, 00047 gpointer cb_data); 00048 00049 void icd_plugin_unload_module (void *handle); 00050 00053 #endif