diff options
Diffstat (limited to 'eglib/gmodule.h')
-rw-r--r-- | eglib/gmodule.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/eglib/gmodule.h b/eglib/gmodule.h new file mode 100644 index 00000000..e392d5c8 --- /dev/null +++ b/eglib/gmodule.h @@ -0,0 +1,21 @@ +#ifndef __GMODULE_H +#define __GMODULE_H + +#include <gmain.h> + +typedef struct _GModule GModule; + +typedef enum { + G_MODULE_BIND_LAZY = 1 << 0, + G_MODULE_BIND_LOCAL = 1 << 1, + G_MODULE_BIND_MASK = 0x03 +} GModuleFlags; + +GModule *g_module_open(const gchar *file_name, GModuleFlags flags); +gboolean g_module_symbol(GModule *module, const gchar *symbol_name, + gpointer *symbol); +const gchar *g_module_name(GModule *module); +gboolean g_module_close(GModule *module); +const gchar *g_module_error(void); + +#endif /* __GMODULE_H */ |