summaryrefslogtreecommitdiffstats
path: root/eglib/gmodule.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-02-01 14:21:14 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2008-02-01 14:21:14 +0000
commit9225eadeb28150fcb0b05ec0b31349ce812dd3d0 (patch)
treeff22541587206682b8c7c24c1df90e814cf28980 /eglib/gmodule.h
parentf8bbe089095f14b0e81df36209284ee77b54317e (diff)
Move GModule code to gmodule.c and gmodule.h
Diffstat (limited to 'eglib/gmodule.h')
-rw-r--r--eglib/gmodule.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/eglib/gmodule.h b/eglib/gmodule.h
new file mode 100644
index 00000000..e1830595
--- /dev/null
+++ b/eglib/gmodule.h
@@ -0,0 +1,20 @@
+#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);
+gboolean g_module_close(GModule *module);
+const gchar *g_module_error(void);
+
+#endif /* __GMODULE_H */