diff options
author | Ryan Lortie <desrt@desrt.ca> | 2012-12-06 14:04:59 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2013-01-13 13:11:57 -0500 |
commit | 0156092a4203d1c40dcd0df7515fc7eeaebba9ac (patch) | |
tree | 6dba99c97911f6d5bcd57b0881e9cc61a721e516 /gmodule | |
parent | 0dba77d0f4a28671d77222129f219b5961748562 (diff) |
various: add GLIB_AVAILABLE_IN_ALL everywhere else
Add the GLIB_AVAILABLE_IN_ALL annotation to all old functions (that
haven't already been annotated with the GLIB_AVAILABLE_IN_* macros or a
deprecation macro).
If we discover in the future that we cannot use only one macro on
Windows, it will be an easy sed patch to fix that.
https://bugzilla.gnome.org/show_bug.cgi?id=688681
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 |