Add G_GNUC_DEPRECATED to deprecated functions in gio

This commit is contained in:
Matthias Clasen 2011-10-08 23:49:04 -04:00
parent 93b3f6477e
commit ff2dafb209
7 changed files with 36 additions and 35 deletions

View File

@ -99,6 +99,8 @@ GType g_desktop_app_info_lookup_get_type (void) G_GNUC_CON
GAppInfo *g_desktop_app_info_lookup_get_default_for_uri_scheme (GDesktopAppInfoLookup *lookup,
const char *uri_scheme);
#endif /* G_DISABLE_DEPRECATED */
/**
* GDesktopAppLaunchCallback:
* @appinfo: a #GDesktopAppInfo
@ -123,7 +125,6 @@ gboolean g_desktop_app_info_launch_uris_as_manager (GDesktopAppInfo
gpointer pid_callback_data,
GError **error);
#endif /* G_DISABLE_DEPRECATED */
G_END_DECLS

View File

@ -169,10 +169,10 @@ void g_drive_eject (GDrive *drive,
GMountUnmountFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gpointer user_data) G_GNUC_DEPRECATED_FOR(g_drive_eject_with_operation);
gboolean g_drive_eject_finish (GDrive *drive,
GAsyncResult *result,
GError **error);
GError **error) G_GNUC_DEPRECATED_FOR(g_drive_eject_with_operation_finish);
#endif
void g_drive_poll_for_media (GDrive *drive,
GCancellable *cancellable,

View File

@ -874,10 +874,10 @@ void g_file_unmount_mountable (GFile
GMountUnmountFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gpointer user_data) G_GNUC_DEPRECATED_FOR(g_file_unmount_mountable_with_operation);
gboolean g_file_unmount_mountable_finish (GFile *file,
GAsyncResult *result,
GError **error);
GError **error) G_GNUC_DEPRECATED_FOR(g_file_unmount_mountable_with_operation_finish);
#endif
void g_file_unmount_mountable_with_operation (GFile *file,
GMountUnmountFlags flags,
@ -893,10 +893,10 @@ void g_file_eject_mountable (GFile
GMountUnmountFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gpointer user_data) G_GNUC_DEPRECATED_FOR(g_file_eject_mountable_with_operation);
gboolean g_file_eject_mountable_finish (GFile *file,
GAsyncResult *result,
GError **error);
GError **error) G_GNUC_DEPRECATED_FOR(g_file_eject_mountable_with_operation_finish);
#endif
void g_file_eject_mountable_with_operation (GFile *file,
GMountUnmountFlags flags,

View File

@ -175,19 +175,19 @@ void g_mount_unmount (GMount *mount,
GMountUnmountFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gpointer user_data) G_GNUC_DEPRECATED_FOR(g_mount_unmount_with_operation);
gboolean g_mount_unmount_finish (GMount *mount,
GAsyncResult *result,
GError **error);
GError **error) G_GNUC_DEPRECATED_FOR(g_mount_unmount_with_operation_finish);
void g_mount_eject (GMount *mount,
GMountUnmountFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gpointer user_data) G_GNUC_DEPRECATED_FOR(g_mount_eject_with_operation);
gboolean g_mount_eject_finish (GMount *mount,
GAsyncResult *result,
GError **error);
GError **error) G_GNUC_DEPRECATED_FOR(g_mount_eject_with_operation_finish);
#endif
void g_mount_remount (GMount *mount,

View File

@ -85,8 +85,8 @@ GType g_tls_connection_get_type (void) G_GNUC
#ifndef G_DISABLE_DEPRECATED
void g_tls_connection_set_use_system_certdb (GTlsConnection *conn,
gboolean use_system_certdb);
gboolean g_tls_connection_get_use_system_certdb (GTlsConnection *conn);
gboolean use_system_certdb) G_GNUC_DEPRECATED;
gboolean g_tls_connection_get_use_system_certdb (GTlsConnection *conn) G_GNUC_DEPRECATED;
#endif /* G_DISABLE_DEPRECATED */
void g_tls_connection_set_database (GTlsConnection *conn,

View File

@ -57,7 +57,7 @@ GType g_unix_socket_address_get_type (void) G_GNUC_CONST;
GSocketAddress *g_unix_socket_address_new (const gchar *path);
#ifndef G_DISABLE_DEPRECATED
GSocketAddress *g_unix_socket_address_new_abstract (const gchar *path,
gint path_len);
gint path_len) G_GNUC_DEPRECATED_FOR(g_unix_socket_address_new_with_type);
#endif
GSocketAddress *g_unix_socket_address_new_with_type (const gchar *path,
gint path_len,
@ -66,7 +66,7 @@ const char * g_unix_socket_address_get_path (GUnixSocketAddress *addre
gsize g_unix_socket_address_get_path_len (GUnixSocketAddress *address);
GUnixSocketAddressType g_unix_socket_address_get_address_type (GUnixSocketAddress *address);
#ifndef G_DISABLE_DEPRECATED
gboolean g_unix_socket_address_get_is_abstract (GUnixSocketAddress *address);
gboolean g_unix_socket_address_get_is_abstract (GUnixSocketAddress *address) G_GNUC_DEPRECATED;
#endif
gboolean g_unix_socket_address_abstract_names_supported (void);

View File

@ -185,10 +185,10 @@ void g_volume_eject (GVolume *volume,
GMountUnmountFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gpointer user_data) G_GNUC_DEPRECATED_FOR(g_volume_eject_with_operation);
gboolean g_volume_eject_finish (GVolume *volume,
GAsyncResult *result,
GError **error);
GError **error) G_GNUC_DEPRECATED_FOR(g_volume_eject_with_operation_finish);
#endif
char * g_volume_get_identifier (GVolume *volume,
const char *kind);