diff options
author | David Zeuthen <davidz@redhat.com> | 2009-06-17 09:49:44 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2009-06-17 09:50:35 -0400 |
commit | 4053577a19585c63e23e6c6e85011e2df9910745 (patch) | |
tree | 8c77e6ab423827a8623e7b55ad77ef362eb669af /daemon/gvfsbackend.c | |
parent | 8a72222d454bdf12e88402b2f012667e7c8e9754 (diff) |
Bug 585591 – Starting/stopping drives
This is the GVfs implementation for the new GIO API for
starting/stopping drives. See
http://bugzilla.gnome.org/show_bug.cgi?id=585591
for details.
Diffstat (limited to 'daemon/gvfsbackend.c')
-rw-r--r-- | daemon/gvfsbackend.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/daemon/gvfsbackend.c b/daemon/gvfsbackend.c index 74aabdb2..3be3cdbf 100644 --- a/daemon/gvfsbackend.c +++ b/daemon/gvfsbackend.c @@ -46,6 +46,8 @@ #include <gvfsjobunmount.h> #include <gvfsjobmountmountable.h> #include <gvfsjobunmountmountable.h> +#include <gvfsjobstartmountable.h> +#include <gvfsjobstopmountable.h> #include <gvfsjobmakedirectory.h> #include <gvfsjobmakesymlink.h> #include <gvfsjobcreatemonitor.h> @@ -533,6 +535,14 @@ backend_dbus_handler (DBusConnection *connection, job = g_vfs_job_unmount_mountable_new (connection, message, backend, TRUE); else if (dbus_message_is_method_call (message, G_VFS_DBUS_MOUNT_INTERFACE, + G_VFS_DBUS_MOUNT_OP_START_MOUNTABLE)) + job = g_vfs_job_start_mountable_new (connection, message, backend); + else if (dbus_message_is_method_call (message, + G_VFS_DBUS_MOUNT_INTERFACE, + G_VFS_DBUS_MOUNT_OP_STOP_MOUNTABLE)) + job = g_vfs_job_stop_mountable_new (connection, message, backend); + else if (dbus_message_is_method_call (message, + G_VFS_DBUS_MOUNT_INTERFACE, G_VFS_DBUS_MOUNT_OP_SET_DISPLAY_NAME)) job = g_vfs_job_set_display_name_new (connection, message, backend); else if (dbus_message_is_method_call (message, |