diff options
Diffstat (limited to 'gmodule')
-rw-r--r-- | gmodule/gmodule.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gmodule/gmodule.h b/gmodule/gmodule.h index dbfa28b22..caa0680c8 100644 --- a/gmodule/gmodule.h +++ b/gmodule/gmodule.h @@ -53,27 +53,34 @@ typedef const gchar* (*GModuleCheckInit) (GModule *module); typedef void (*GModuleUnload) (GModule *module); /* return TRUE if dynamic module loading is supported */ +GLIB_AVAILABLE_IN_ALL gboolean g_module_supported (void) G_GNUC_CONST; /* open a module `file_name' and return handle, which is NULL on error */ +GLIB_AVAILABLE_IN_ALL GModule* g_module_open (const gchar *file_name, GModuleFlags flags); /* close a previously opened module, returns TRUE on success */ +GLIB_AVAILABLE_IN_ALL gboolean g_module_close (GModule *module); /* make a module resident so g_module_close on it will be ignored */ +GLIB_AVAILABLE_IN_ALL void g_module_make_resident (GModule *module); /* query the last module error as a string */ +GLIB_AVAILABLE_IN_ALL const gchar * g_module_error (void); /* retrieve a symbol pointer from `module', returns TRUE on success */ +GLIB_AVAILABLE_IN_ALL gboolean g_module_symbol (GModule *module, const gchar *symbol_name, gpointer *symbol); /* retrieve the file name from an existing module */ +GLIB_AVAILABLE_IN_ALL const gchar * g_module_name (GModule *module); /* Build the actual file name containing a module. `directory' is the @@ -87,6 +94,7 @@ const gchar * g_module_name (GModule *module); * * No checks are made that the file exists, or is of correct type. */ +GLIB_AVAILABLE_IN_ALL gchar* g_module_build_path (const gchar *directory, const gchar *module_name); @@ -96,8 +104,10 @@ gchar* g_module_build_path (const gchar *directory, #define g_module_open g_module_open_utf8 #define g_module_name g_module_name_utf8 +GLIB_AVAILABLE_IN_ALL GModule * g_module_open_utf8 (const gchar *file_name, GModuleFlags flags); +GLIB_AVAILABLE_IN_ALL const gchar *g_module_name_utf8 (GModule *module); #endif #endif |