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.h | |
parent | 7afb8438c184839e43f81341578e8c6c40d5883f (diff) | |
download | gvfs-178eb46a36ceb9a1b4aa6e9fba2e3b72d52e5754.tar.gz |
Add Push and Pull. Remove Upload. (#550100)
svn path=/trunk/; revision=1922
Diffstat (limited to 'daemon/gvfsbackend.h')
-rw-r--r-- | daemon/gvfsbackend.h | 51 |
1 files changed, 35 insertions, 16 deletions
diff --git a/daemon/gvfsbackend.h b/daemon/gvfsbackend.h index d8c78675..e47f3680 100644 --- a/daemon/gvfsbackend.h +++ b/daemon/gvfsbackend.h @@ -64,8 +64,9 @@ typedef struct _GVfsJobDelete GVfsJobDelete; typedef struct _GVfsJobMakeDirectory GVfsJobMakeDirectory; typedef struct _GVfsJobMakeSymlink GVfsJobMakeSymlink; typedef struct _GVfsJobCopy GVfsJobCopy; -typedef struct _GVfsJobUpload GVfsJobUpload; typedef struct _GVfsJobMove GVfsJobMove; +typedef struct _GVfsJobPush GVfsJobPush; +typedef struct _GVfsJobPull GVfsJobPull; typedef struct _GVfsJobSetAttribute GVfsJobSetAttribute; typedef struct _GVfsJobQueryAttributes GVfsJobQueryAttributes; typedef struct _GVfsJobCreateMonitor GVfsJobCreateMonitor; @@ -297,21 +298,7 @@ struct _GVfsBackendClass GFileCopyFlags flags, GFileProgressCallback progress_callback, gpointer progress_callback_data); - void (*upload) (GVfsBackend *backend, - GVfsJobUpload *job, - const char *destination, - const char *local_path, - GFileCopyFlags flags, - GFileProgressCallback progress_callback, - gpointer progress_callback_data); - gboolean (*try_upload) (GVfsBackend *backend, - GVfsJobUpload *job, - const char *destination, - const char *local_path, - GFileCopyFlags flags, - GFileProgressCallback progress_callback, - gpointer progress_callback_data); - void (*move) (GVfsBackend *backend, + void (*move) (GVfsBackend *backend, GVfsJobMove *job, const char *source, const char *destination, @@ -325,6 +312,38 @@ struct _GVfsBackendClass GFileCopyFlags flags, GFileProgressCallback progress_callback, gpointer progress_callback_data); + void (*push) (GVfsBackend *backend, + GVfsJobPush *job, + const char *destination, + const char *local_path, + GFileCopyFlags flags, + gboolean remove_source, + GFileProgressCallback progress_callback, + gpointer progress_callback_data); + gboolean (*try_push) (GVfsBackend *backend, + GVfsJobPush *job, + const char *destination, + const char *local_path, + GFileCopyFlags flags, + gboolean remove_source, + GFileProgressCallback progress_callback, + gpointer progress_callback_data); + void (*pull) (GVfsBackend *backend, + GVfsJobPull *job, + const char *source, + const char *local_path, + GFileCopyFlags flags, + gboolean remove_source, + GFileProgressCallback progress_callback, + gpointer progress_callback_data); + gboolean (*try_pull) (GVfsBackend *backend, + GVfsJobPull *job, + const char *source, + const char *local_path, + GFileCopyFlags flags, + gboolean remove_source, + GFileProgressCallback progress_callback, + gpointer progress_callback_data); void (*set_attribute) (GVfsBackend *backend, GVfsJobSetAttribute *set_attribute, const char *filename, |