summaryrefslogtreecommitdiff
path: root/hal/ghaldrive.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2007-12-20 11:48:48 +0000
committerAlexander Larsson <alexl@src.gnome.org>2007-12-20 11:48:48 +0000
commit496cfe2689f7d687203998e90b2b343682c95846 (patch)
treed7ae5183a32dd4a3c9c022ac94d749cd8fdfdbea /hal/ghaldrive.c
parent906960ade0efac716394ab7d09e7daf6dcdc3ace (diff)
downloadgvfs-496cfe2689f7d687203998e90b2b343682c95846.tar.gz
Update to new unmount flag api
2007-12-20 Alexander Larsson <alexl@redhat.com> * client/gdaemonmount.c: * hal/ghaldrive.c: * hal/ghalmount.c: * hal/ghalvolume.c: * programs/gvfs-mount.c: Update to new unmount flag api svn path=/trunk/; revision=1057
Diffstat (limited to 'hal/ghaldrive.c')
-rw-r--r--hal/ghaldrive.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hal/ghaldrive.c b/hal/ghaldrive.c
index 5071e1bd..db4079a4 100644
--- a/hal/ghaldrive.c
+++ b/hal/ghaldrive.c
@@ -587,6 +587,7 @@ typedef struct {
GAsyncReadyCallback callback;
gpointer user_data;
GCancellable *cancellable;
+ GMountUnmountFlags flags;
GList *pending_mounts;
} UnmountMountsOp;
@@ -673,6 +674,7 @@ _eject_unmount_mounts (UnmountMountsOp *data)
g_warning ("unmounting %p", mount);
g_mount_unmount (mount,
+ data->flags,
data->cancellable,
_eject_unmount_mounts_cb,
data);
@@ -681,6 +683,7 @@ _eject_unmount_mounts (UnmountMountsOp *data)
static void
g_hal_drive_eject (GDrive *drive,
+ GMountUnmountFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
@@ -696,6 +699,7 @@ g_hal_drive_eject (GDrive *drive,
data->cancellable = cancellable;
data->callback = callback;
data->user_data = user_data;
+ data->flags = flags;
for (l = hal_drive->volumes; l != NULL; l = l->next)
{