diff options
author | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 14:10:47 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 14:10:47 +0000 |
commit | c533499cf5fe44a40af2f0deee707b90a93adf41 (patch) | |
tree | 7279196bd72e8d5cda7c463a9720a3e1eb232d29 /daemon/gvfsbackend.h | |
parent | a5becff0b09a270b237a31cea371094321a90824 (diff) | |
download | gvfs-c533499cf5fe44a40af2f0deee707b90a93adf41.tar.gz |
Move FileInfo marshalling to common/.
Split up FileInfo marshalling so attributes can be marshalled independently.
Rename some protocol utilities to private namespace.
Implement SetAttribute operation marshaling.
Correct some trivial typos.
Original git commit by Hans Petter Jansson <hpj@cl.no> at 1183630369 +0200
svn path=/trunk/; revision=640
Diffstat (limited to 'daemon/gvfsbackend.h')
-rw-r--r-- | daemon/gvfsbackend.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/daemon/gvfsbackend.h b/daemon/gvfsbackend.h index e4b99f68..cc0aece0 100644 --- a/daemon/gvfsbackend.h +++ b/daemon/gvfsbackend.h @@ -42,6 +42,7 @@ typedef struct _GVfsJobDelete GVfsJobDelete; typedef struct _GVfsJobMakeDirectory GVfsJobMakeDirectory; typedef struct _GVfsJobCopy GVfsJobCopy; typedef struct _GVfsJobMove GVfsJobMove; +typedef struct _GVfsJobSetAttribute GVfsJobSetAttribute; typedef gpointer GVfsBackendHandle; @@ -213,10 +214,10 @@ struct _GVfsBackendClass GVfsJobTrash *job, const char *filename); void (*make_directory) (GVfsBackend *backend, - GVfsJobMakeDirectory *make_directory, + GVfsJobMakeDirectory *job, const char *filename); gboolean (*try_make_directory)(GVfsBackend *backend, - GVfsJobMakeDirectory *make_directory, + GVfsJobMakeDirectory *job, const char *filename); void (*copy) (GVfsBackend *backend, GVfsJobCopy *job, @@ -246,6 +247,20 @@ struct _GVfsBackendClass GFileCopyFlags flags, GFileProgressCallback progress_callback, gpointer progress_callback_data); + void (*set_attribute) (GVfsBackend *backend, + GVfsJobSetAttribute *set_attribute, + const char *filename, + const char *attribute, + GFileAttributeType type, + gconstpointer value_ptr, + GFileGetInfoFlags flags); + gboolean (*try_set_attribute) (GVfsBackend *backend, + GVfsJobSetAttribute *set_attribute, + const char *filename, + const char *attribute, + GFileAttributeType type, + gconstpointer value_ptr, + GFileGetInfoFlags flags); }; GType g_vfs_backend_get_type (void) G_GNUC_CONST; |