mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-03 16:03:40 +02:00
Add GMountUnmountFlags to all unmount and eject calls. Add
2007-12-20 Alexander Larsson <alexl@redhat.com> * gfile.[ch]: * gdrive.[ch]: * gmount.[ch]: * gvolume.[ch]: * gunixmount.c: * gunixvolume.c: * gio.symbols: Add GMountUnmountFlags to all unmount and eject calls. Add g_mount_remount() call. svn path=/trunk/; revision=6169
This commit is contained in:
committed by
Alexander Larsson
parent
ba464215e7
commit
33c055feb1
20
gio/gmount.h
20
gio/gmount.h
@@ -95,6 +95,7 @@ struct _GMountIface
|
||||
gboolean (*can_unmount) (GMount *mount);
|
||||
gboolean (*can_eject) (GMount *mount);
|
||||
void (*unmount) (GMount *mount,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
@@ -102,12 +103,21 @@ struct _GMountIface
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (*eject) (GMount *mount,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (*eject_finish) (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (*remount) (GMount *mount,
|
||||
GMountOperation *mount_operation,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (*remount_finish) (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
};
|
||||
|
||||
GType g_mount_get_type (void) G_GNUC_CONST;
|
||||
@@ -121,6 +131,7 @@ GDrive * g_mount_get_drive (GMount *mount);
|
||||
gboolean g_mount_can_unmount (GMount *mount);
|
||||
gboolean g_mount_can_eject (GMount *mount);
|
||||
void g_mount_unmount (GMount *mount,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
@@ -128,12 +139,21 @@ gboolean g_mount_unmount_finish (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void g_mount_eject (GMount *mount,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean g_mount_eject_finish (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void g_mount_remount (GMount *mount,
|
||||
GMountOperation *mount_operation,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean g_mount_remount_finish (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Reference in New Issue
Block a user