summaryrefslogtreecommitdiffstats
path: root/eglib/gmodule.h
blob: e18305951f274764d4c4d95d0f75cd6a015a623d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 */