mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Use GLIB_DEPRECATED instead of G_GNUC_DEPRECATED in our headers
This will let others opt out of seeing GLib deprecation warnings by defining GLIB_DISABLE_DEPRECATION_WARNINGS. https://bugzilla.gnome.org/show_bug.cgi?id=661438
This commit is contained in:
committed by
Matthias Clasen
parent
a1acf35653
commit
08d6e1147d
14
gio/gmount.h
14
gio/gmount.h
@@ -171,23 +171,29 @@ gboolean g_mount_can_unmount (GMount *mount);
|
||||
gboolean g_mount_can_eject (GMount *mount);
|
||||
|
||||
#ifndef G_DISABLE_DEPRECATED
|
||||
GLIB_DEPRECATED_FOR(g_mount_unmount_with_operation)
|
||||
void g_mount_unmount (GMount *mount,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data) G_GNUC_DEPRECATED_FOR(g_mount_unmount_with_operation);
|
||||
gpointer user_data);
|
||||
|
||||
GLIB_DEPRECATED_FOR(g_mount_unmount_with_operation_finish)
|
||||
gboolean g_mount_unmount_finish (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error) G_GNUC_DEPRECATED_FOR(g_mount_unmount_with_operation_finish);
|
||||
GError **error);
|
||||
|
||||
GLIB_DEPRECATED_FOR(g_mount_eject_with_operation)
|
||||
void g_mount_eject (GMount *mount,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data) G_GNUC_DEPRECATED_FOR(g_mount_eject_with_operation);
|
||||
gpointer user_data);
|
||||
|
||||
GLIB_DEPRECATED_FOR(g_mount_eject_with_operation_finish)
|
||||
gboolean g_mount_eject_finish (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error) G_GNUC_DEPRECATED_FOR(g_mount_eject_with_operation_finish);
|
||||
GError **error);
|
||||
#endif
|
||||
|
||||
void g_mount_remount (GMount *mount,
|
||||
|
Reference in New Issue
Block a user