diff options
author | Christian Kellner <gicmo@src.gnome.org> | 2008-09-01 21:22:15 +0000 |
---|---|---|
committer | Christian Kellner <gicmo@src.gnome.org> | 2008-09-01 21:22:15 +0000 |
commit | 178eb46a36ceb9a1b4aa6e9fba2e3b72d52e5754 (patch) | |
tree | 33da89988c49acbe85b8e20d09b33e547c0c3c15 /daemon/gvfsbackend.c | |
parent | 7afb8438c184839e43f81341578e8c6c40d5883f (diff) |
Add Push and Pull. Remove Upload. (#550100)
svn path=/trunk/; revision=1922
Diffstat (limited to 'daemon/gvfsbackend.c')
-rw-r--r-- | daemon/gvfsbackend.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/daemon/gvfsbackend.c b/daemon/gvfsbackend.c index ddce08cc..4e6e9a53 100644 --- a/daemon/gvfsbackend.c +++ b/daemon/gvfsbackend.c @@ -48,9 +48,10 @@ #include <gvfsjobmakedirectory.h> #include <gvfsjobmakesymlink.h> #include <gvfsjobcreatemonitor.h> -#include <gvfsjobupload.h> #include <gvfsjobcopy.h> #include <gvfsjobmove.h> +#include <gvfsjobpush.h> +#include <gvfsjobpull.h> #include <gvfsjobsetattribute.h> #include <gvfsjobqueryattributes.h> #include <gdbusutils.h> @@ -534,8 +535,12 @@ backend_dbus_handler (DBusConnection *connection, job = g_vfs_job_copy_new (connection, message, backend); else if (dbus_message_is_method_call (message, G_VFS_DBUS_MOUNT_INTERFACE, - G_VFS_DBUS_MOUNT_OP_UPLOAD)) - job = g_vfs_job_upload_new (connection, message, backend); + G_VFS_DBUS_MOUNT_OP_PUSH)) + job = g_vfs_job_push_new (connection, message, backend); + else if (dbus_message_is_method_call (message, + G_VFS_DBUS_MOUNT_INTERFACE, + G_VFS_DBUS_MOUNT_OP_PULL)) + job = g_vfs_job_pull_new (connection, message, backend); else if (dbus_message_is_method_call (message, G_VFS_DBUS_MOUNT_INTERFACE, G_VFS_DBUS_MOUNT_OP_MOVE)) |