From a797f53418e4f58b570c4a355dd46b33f2f68906 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 1 Feb 2008 11:32:10 +0000 Subject: Add GModule support to eglib --- eglib/gmain.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'eglib/gmain.h') diff --git a/eglib/gmain.h b/eglib/gmain.h index 2ed00fb3..cfc53378 100644 --- a/eglib/gmain.h +++ b/eglib/gmain.h @@ -279,4 +279,20 @@ void g_string_append_printf(GString *string, const gchar *format, ...); gchar *g_string_free(GString *string, gboolean free_segment); +/* GModule */ + +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 /* __GMAIN_H */ -- cgit