16.9. Data Definitions for libgmodule-2.0

This section defines global identifiers and their values that are associated with interfaces contained in libgmodule-2.0. These definitions are organized into groups that correspond to system headers. This convention is used as a convenience for the reader, and does not imply the existence of these headers, or their content. Where an interface is defined as requiring a particular system header file all of the data definitions for that system header file presented here shall be in effect.

This section gives data definitions to promote binary application portability, not to repeat source interface definitions available elsewhere. System providers and application developers should use this ABI to supplement - not to replace - source interface definition specifications.

This specification uses the ISO C (1999) C Language as the reference programming language, and data definitions are specified in ISO C format. The C language is used here as a convenient notation. Using a C language description of these data objects does not preclude their use by other programming languages.

16.9.1. glib-2.0/gmodule.h

#define G_MODULE_IMPORT	extern

typedef struct _GModule GModule;
typedef enum {
} GModuleFlags;
typedef void (*GModuleUnload) (GModule *);
typedef const gchar *(*GModuleCheckInit) (GModule *);
extern gchar *g_module_build_path(const gchar * directory,
				  const gchar * module_name);
extern gboolean g_module_close(GModule * module);
extern const gchar *g_module_error(void);
extern void g_module_make_resident(GModule * module);
extern const gchar *g_module_name(GModule * module);
extern GModule *g_module_open(const gchar * file_name, GModuleFlags flags);
extern gboolean g_module_supported(void);
extern gboolean g_module_symbol(GModule * module,
				const gchar * symbol_name,
				gpointer * symbol);