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
This commit is contained in:
Ryan Lortie
2012-12-06 14:04:59 -05:00
parent 0dba77d0f4
commit 0156092a42
221 changed files with 3186 additions and 0 deletions

View File

@@ -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);