1 #ifndef __GLIB_GMODULE_H
2 #define __GLIB_GMODULE_H
6 #define G_MODULE_IMPORT extern
8 #define G_MODULE_EXPORT __declspec(dllexport)
10 #define G_MODULE_EXPORT
19 G_MODULE_BIND_LAZY
= 0x01,
20 G_MODULE_BIND_LOCAL
= 0x02,
21 G_MODULE_BIND_MASK
= 0x03
24 G_ENUM_FUNCTIONS (GModuleFlags
)
26 typedef struct _GModule GModule
;
28 G_EXTERN_C
// Used by libtest, at least.
29 GModule
*g_module_open (const gchar
*file
, GModuleFlags flags
);
30 G_EXTERN_C
// Used by libtest, at least.
31 gboolean
g_module_symbol (GModule
*module
, const gchar
*symbol_name
,
33 /* Caller must provide a suitable buffer. */
34 gboolean
g_module_address (void *addr
, char *file_name
, size_t file_name_len
,
35 void **file_base
, char *sym_name
,
36 size_t sym_name_len
, void **sym_addr
);
37 const gchar
*g_module_error (void);
38 gboolean
g_module_close (GModule
*module
);
39 gchar
* g_module_build_path (const gchar
*directory
, const gchar
*module_name
);
41 extern char *gmodule_libprefix
;
42 extern char *gmodule_libsuffix
;