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 /glib/gstdio.h | |
parent | 0dba77d0f4a28671d77222129f219b5961748562 (diff) | |
download | glib-0156092a4203d1c40dcd0df7515fc7eeaebba9ac.tar.gz |
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 'glib/gstdio.h')
-rw-r--r-- | glib/gstdio.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/glib/gstdio.h b/glib/gstdio.h index 08aea7d3b..238d60ef4 100644 --- a/glib/gstdio.h +++ b/glib/gstdio.h @@ -74,13 +74,17 @@ typedef struct stat GStatBuf; #define g_utime utime #endif +GLIB_AVAILABLE_IN_ALL int g_access (const gchar *filename, int mode); +GLIB_AVAILABLE_IN_ALL int g_chdir (const gchar *path); +GLIB_AVAILABLE_IN_ALL int g_unlink (const gchar *filename); +GLIB_AVAILABLE_IN_ALL int g_rmdir (const gchar *filename); #else /* ! G_OS_UNIX */ @@ -95,42 +99,56 @@ int g_rmdir (const gchar *filename); * API. */ +GLIB_AVAILABLE_IN_ALL int g_access (const gchar *filename, int mode); +GLIB_AVAILABLE_IN_ALL int g_chmod (const gchar *filename, int mode); +GLIB_AVAILABLE_IN_ALL int g_open (const gchar *filename, int flags, int mode); +GLIB_AVAILABLE_IN_ALL int g_creat (const gchar *filename, int mode); +GLIB_AVAILABLE_IN_ALL int g_rename (const gchar *oldfilename, const gchar *newfilename); +GLIB_AVAILABLE_IN_ALL int g_mkdir (const gchar *filename, int mode); +GLIB_AVAILABLE_IN_ALL int g_chdir (const gchar *path); +GLIB_AVAILABLE_IN_ALL int g_stat (const gchar *filename, GStatBuf *buf); +GLIB_AVAILABLE_IN_ALL int g_lstat (const gchar *filename, GStatBuf *buf); +GLIB_AVAILABLE_IN_ALL int g_unlink (const gchar *filename); +GLIB_AVAILABLE_IN_ALL int g_remove (const gchar *filename); +GLIB_AVAILABLE_IN_ALL int g_rmdir (const gchar *filename); +GLIB_AVAILABLE_IN_ALL FILE *g_fopen (const gchar *filename, const gchar *mode); +GLIB_AVAILABLE_IN_ALL FILE *g_freopen (const gchar *filename, const gchar *mode, FILE *stream); @@ -139,6 +157,7 @@ struct utimbuf; /* Don't need the real definition of struct utimbuf when just * including this header. */ +GLIB_AVAILABLE_IN_ALL int g_utime (const gchar *filename, struct utimbuf *utb); |