patches/gvfs-03-unmount-webdav.diff
author Jon Tibble <meths@btinternet.com>
Sat, 06 Oct 2012 16:11:50 +0100
branchs11express-2010-11
changeset 22109 db10202d5f6d
parent 17331 fe9a34ed8fc6
permissions -rw-r--r--
Added tag oi_151a_prestable7 for changeset 25dee50cecca
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16218
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     1
--- gvfs-1.3.3/daemon/gvfsbackenddav.c.orig	2009-08-07 15:43:41.662781000 +0800
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     2
+++ gvfs-1.3.3/daemon/gvfsbackenddav.c	2009-08-07 15:45:12.580734000 +0800
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     3
@@ -2304,13 +2304,11 @@
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     4
   soup_uri_free (source);
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     5
 }
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     6
 
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     7
-static gboolean
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     8
-try_unmount (GVfsBackend    *backend,
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     9
-             GVfsJobUnmount *job,
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    10
-             GMountUnmountFlags flags,
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    11
-             GMountSource *mount_source)
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    12
+static void 
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    13
+do_unmount (GVfsBackend    *backend,
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    14
+             GVfsJobUnmount *job)
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    15
 {
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    16
-  _exit (0);
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    17
+  g_vfs_job_succeeded (G_VFS_JOB (job));
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    18
 }
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    19
 
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    20
 /* ************************************************************************* */
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    21
@@ -2338,5 +2336,5 @@
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    22
   backend_class->make_directory    = do_make_directory;
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    23
   backend_class->delete            = do_delete;
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    24
   backend_class->set_display_name  = do_set_display_name;
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    25
-  backend_class->try_unmount       = try_unmount;
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    26
+  backend_class->unmount           = do_unmount;
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    27
 }