mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
Add G_GNUC_DEPRECATED to deprecated functions in gio
This commit is contained in:
@@ -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,
|
GAppInfo *g_desktop_app_info_lookup_get_default_for_uri_scheme (GDesktopAppInfoLookup *lookup,
|
||||||
const char *uri_scheme);
|
const char *uri_scheme);
|
||||||
|
|
||||||
|
#endif /* G_DISABLE_DEPRECATED */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GDesktopAppLaunchCallback:
|
* GDesktopAppLaunchCallback:
|
||||||
* @appinfo: a #GDesktopAppInfo
|
* @appinfo: a #GDesktopAppInfo
|
||||||
@@ -123,7 +125,6 @@ gboolean g_desktop_app_info_launch_uris_as_manager (GDesktopAppInfo
|
|||||||
gpointer pid_callback_data,
|
gpointer pid_callback_data,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
#endif /* G_DISABLE_DEPRECATED */
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
@@ -169,10 +169,10 @@ void g_drive_eject (GDrive *drive,
|
|||||||
GMountUnmountFlags flags,
|
GMountUnmountFlags flags,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GAsyncReadyCallback callback,
|
GAsyncReadyCallback callback,
|
||||||
gpointer user_data);
|
gpointer user_data) G_GNUC_DEPRECATED_FOR(g_drive_eject_with_operation);
|
||||||
gboolean g_drive_eject_finish (GDrive *drive,
|
gboolean g_drive_eject_finish (GDrive *drive,
|
||||||
GAsyncResult *result,
|
GAsyncResult *result,
|
||||||
GError **error);
|
GError **error) G_GNUC_DEPRECATED_FOR(g_drive_eject_with_operation_finish);
|
||||||
#endif
|
#endif
|
||||||
void g_drive_poll_for_media (GDrive *drive,
|
void g_drive_poll_for_media (GDrive *drive,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
|
@@ -874,10 +874,10 @@ void g_file_unmount_mountable (GFile
|
|||||||
GMountUnmountFlags flags,
|
GMountUnmountFlags flags,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GAsyncReadyCallback callback,
|
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,
|
gboolean g_file_unmount_mountable_finish (GFile *file,
|
||||||
GAsyncResult *result,
|
GAsyncResult *result,
|
||||||
GError **error);
|
GError **error) G_GNUC_DEPRECATED_FOR(g_file_unmount_mountable_with_operation_finish);
|
||||||
#endif
|
#endif
|
||||||
void g_file_unmount_mountable_with_operation (GFile *file,
|
void g_file_unmount_mountable_with_operation (GFile *file,
|
||||||
GMountUnmountFlags flags,
|
GMountUnmountFlags flags,
|
||||||
@@ -893,10 +893,10 @@ void g_file_eject_mountable (GFile
|
|||||||
GMountUnmountFlags flags,
|
GMountUnmountFlags flags,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GAsyncReadyCallback callback,
|
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,
|
gboolean g_file_eject_mountable_finish (GFile *file,
|
||||||
GAsyncResult *result,
|
GAsyncResult *result,
|
||||||
GError **error);
|
GError **error) G_GNUC_DEPRECATED_FOR(g_file_eject_mountable_with_operation_finish);
|
||||||
#endif
|
#endif
|
||||||
void g_file_eject_mountable_with_operation (GFile *file,
|
void g_file_eject_mountable_with_operation (GFile *file,
|
||||||
GMountUnmountFlags flags,
|
GMountUnmountFlags flags,
|
||||||
|
@@ -175,19 +175,19 @@ void g_mount_unmount (GMount *mount,
|
|||||||
GMountUnmountFlags flags,
|
GMountUnmountFlags flags,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GAsyncReadyCallback callback,
|
GAsyncReadyCallback callback,
|
||||||
gpointer user_data);
|
gpointer user_data) G_GNUC_DEPRECATED_FOR(g_mount_unmount_with_operation);
|
||||||
gboolean g_mount_unmount_finish (GMount *mount,
|
gboolean g_mount_unmount_finish (GMount *mount,
|
||||||
GAsyncResult *result,
|
GAsyncResult *result,
|
||||||
GError **error);
|
GError **error) G_GNUC_DEPRECATED_FOR(g_mount_unmount_with_operation_finish);
|
||||||
|
|
||||||
void g_mount_eject (GMount *mount,
|
void g_mount_eject (GMount *mount,
|
||||||
GMountUnmountFlags flags,
|
GMountUnmountFlags flags,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GAsyncReadyCallback callback,
|
GAsyncReadyCallback callback,
|
||||||
gpointer user_data);
|
gpointer user_data) G_GNUC_DEPRECATED_FOR(g_mount_eject_with_operation);
|
||||||
gboolean g_mount_eject_finish (GMount *mount,
|
gboolean g_mount_eject_finish (GMount *mount,
|
||||||
GAsyncResult *result,
|
GAsyncResult *result,
|
||||||
GError **error);
|
GError **error) G_GNUC_DEPRECATED_FOR(g_mount_eject_with_operation_finish);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void g_mount_remount (GMount *mount,
|
void g_mount_remount (GMount *mount,
|
||||||
|
@@ -85,8 +85,8 @@ GType g_tls_connection_get_type (void) G_GNUC
|
|||||||
|
|
||||||
#ifndef G_DISABLE_DEPRECATED
|
#ifndef G_DISABLE_DEPRECATED
|
||||||
void g_tls_connection_set_use_system_certdb (GTlsConnection *conn,
|
void g_tls_connection_set_use_system_certdb (GTlsConnection *conn,
|
||||||
gboolean use_system_certdb);
|
gboolean use_system_certdb) G_GNUC_DEPRECATED;
|
||||||
gboolean g_tls_connection_get_use_system_certdb (GTlsConnection *conn);
|
gboolean g_tls_connection_get_use_system_certdb (GTlsConnection *conn) G_GNUC_DEPRECATED;
|
||||||
#endif /* G_DISABLE_DEPRECATED */
|
#endif /* G_DISABLE_DEPRECATED */
|
||||||
|
|
||||||
void g_tls_connection_set_database (GTlsConnection *conn,
|
void g_tls_connection_set_database (GTlsConnection *conn,
|
||||||
|
@@ -57,7 +57,7 @@ GType g_unix_socket_address_get_type (void) G_GNUC_CONST;
|
|||||||
GSocketAddress *g_unix_socket_address_new (const gchar *path);
|
GSocketAddress *g_unix_socket_address_new (const gchar *path);
|
||||||
#ifndef G_DISABLE_DEPRECATED
|
#ifndef G_DISABLE_DEPRECATED
|
||||||
GSocketAddress *g_unix_socket_address_new_abstract (const gchar *path,
|
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
|
#endif
|
||||||
GSocketAddress *g_unix_socket_address_new_with_type (const gchar *path,
|
GSocketAddress *g_unix_socket_address_new_with_type (const gchar *path,
|
||||||
gint path_len,
|
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);
|
gsize g_unix_socket_address_get_path_len (GUnixSocketAddress *address);
|
||||||
GUnixSocketAddressType g_unix_socket_address_get_address_type (GUnixSocketAddress *address);
|
GUnixSocketAddressType g_unix_socket_address_get_address_type (GUnixSocketAddress *address);
|
||||||
#ifndef G_DISABLE_DEPRECATED
|
#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
|
#endif
|
||||||
|
|
||||||
gboolean g_unix_socket_address_abstract_names_supported (void);
|
gboolean g_unix_socket_address_abstract_names_supported (void);
|
||||||
|
@@ -185,10 +185,10 @@ void g_volume_eject (GVolume *volume,
|
|||||||
GMountUnmountFlags flags,
|
GMountUnmountFlags flags,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GAsyncReadyCallback callback,
|
GAsyncReadyCallback callback,
|
||||||
gpointer user_data);
|
gpointer user_data) G_GNUC_DEPRECATED_FOR(g_volume_eject_with_operation);
|
||||||
gboolean g_volume_eject_finish (GVolume *volume,
|
gboolean g_volume_eject_finish (GVolume *volume,
|
||||||
GAsyncResult *result,
|
GAsyncResult *result,
|
||||||
GError **error);
|
GError **error) G_GNUC_DEPRECATED_FOR(g_volume_eject_with_operation_finish);
|
||||||
#endif
|
#endif
|
||||||
char * g_volume_get_identifier (GVolume *volume,
|
char * g_volume_get_identifier (GVolume *volume,
|
||||||
const char *kind);
|
const char *kind);
|
||||||
|
Reference in New Issue
Block a user