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/gfile.h
14
gio/gfile.h
@@ -870,14 +870,17 @@ GFile * g_file_mount_mountable_finish (GFile
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
#ifndef G_DISABLE_DEPRECATED
|
||||
GLIB_DEPRECATED_FOR(g_file_unmount_mountable_with_operation)
|
||||
void g_file_unmount_mountable (GFile *file,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data) G_GNUC_DEPRECATED_FOR(g_file_unmount_mountable_with_operation);
|
||||
gpointer user_data);
|
||||
|
||||
GLIB_DEPRECATED_FOR(g_file_unmount_mountable_with_operation_finish)
|
||||
gboolean g_file_unmount_mountable_finish (GFile *file,
|
||||
GAsyncResult *result,
|
||||
GError **error) G_GNUC_DEPRECATED_FOR(g_file_unmount_mountable_with_operation_finish);
|
||||
GError **error);
|
||||
#endif
|
||||
void g_file_unmount_mountable_with_operation (GFile *file,
|
||||
GMountUnmountFlags flags,
|
||||
@@ -889,14 +892,17 @@ gboolean g_file_unmount_mountable_with_operation_finish (GFile
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
#ifndef G_DISABLE_DEPRECATED
|
||||
GLIB_DEPRECATED_FOR(g_file_eject_mountable_with_operation)
|
||||
void g_file_eject_mountable (GFile *file,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data) G_GNUC_DEPRECATED_FOR(g_file_eject_mountable_with_operation);
|
||||
gpointer user_data);
|
||||
|
||||
GLIB_DEPRECATED_FOR(g_file_eject_mountable_with_operation_finish)
|
||||
gboolean g_file_eject_mountable_finish (GFile *file,
|
||||
GAsyncResult *result,
|
||||
GError **error) G_GNUC_DEPRECATED_FOR(g_file_eject_mountable_with_operation_finish);
|
||||
GError **error);
|
||||
#endif
|
||||
void g_file_eject_mountable_with_operation (GFile *file,
|
||||
GMountUnmountFlags flags,
|
||||
|
Reference in New Issue
Block a user