summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackend.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-02-27 15:50:51 +0000
committerAlexander Larsson <alexl@src.gnome.org>2009-02-27 15:50:51 +0000
commitafc01fa5e7f0d4626f578f9d92e17f9ba05003f0 (patch)
tree6af7428db5e0d6877c8d9c30946a162f53a76703 /daemon/gvfsbackend.h
parent415187aeda32a168c2270f93b9ebb7b07a785ba7 (diff)
downloadgvfs-afc01fa5e7f0d4626f578f9d92e17f9ba05003f0.tar.gz
Support query info on output streams
2009-02-27 Alexander Larsson <alexl@redhat.com> * client/gdaemonfileoutputstream.c: Support query info on output streams * daemon/Makefile.am: * daemon/gvfsbackend.h: * daemon/gvfsjobqueryinfowrite.[ch]: * daemon/gvfswritechannel.c: Add query info write support. * daemon/gvfsbackendtest.c: Implement writing to files in test backend. Implement query info on write * test/test-query-info-stream.c: Test g_file_output_stream_query_info(). svn path=/trunk/; revision=2260
Diffstat (limited to 'daemon/gvfsbackend.h')
-rw-r--r--daemon/gvfsbackend.h67
1 files changed, 39 insertions, 28 deletions
diff --git a/daemon/gvfsbackend.h b/daemon/gvfsbackend.h
index e1393aaf..243d978c 100644
--- a/daemon/gvfsbackend.h
+++ b/daemon/gvfsbackend.h
@@ -43,35 +43,36 @@ typedef struct _GVfsBackend GVfsBackend;
typedef struct _GVfsBackendPrivate GVfsBackendPrivate;
typedef struct _GVfsBackendClass GVfsBackendClass;
-typedef struct _GVfsJobMount GVfsJobMount;
-typedef struct _GVfsJobUnmount GVfsJobUnmount;
-typedef struct _GVfsJobMountMountable GVfsJobMountMountable;
+typedef struct _GVfsJobMount GVfsJobMount;
+typedef struct _GVfsJobUnmount GVfsJobUnmount;
+typedef struct _GVfsJobMountMountable GVfsJobMountMountable;
typedef struct _GVfsJobUnmountMountable GVfsJobUnmountMountable;
-typedef struct _GVfsJobOpenForRead GVfsJobOpenForRead;
-typedef struct _GVfsJobOpenIconForRead GVfsJobOpenIconForRead;
-typedef struct _GVfsJobSeekRead GVfsJobSeekRead;
-typedef struct _GVfsJobCloseRead GVfsJobCloseRead;
-typedef struct _GVfsJobRead GVfsJobRead;
-typedef struct _GVfsJobOpenForWrite GVfsJobOpenForWrite;
-typedef struct _GVfsJobWrite GVfsJobWrite;
-typedef struct _GVfsJobSeekWrite GVfsJobSeekWrite;
-typedef struct _GVfsJobCloseWrite GVfsJobCloseWrite;
-typedef struct _GVfsJobQueryInfo GVfsJobQueryInfo;
-typedef struct _GVfsJobQueryInfoRead GVfsJobQueryInfoRead;
-typedef struct _GVfsJobQueryFsInfo GVfsJobQueryFsInfo;
-typedef struct _GVfsJobEnumerate GVfsJobEnumerate;
-typedef struct _GVfsJobSetDisplayName GVfsJobSetDisplayName;
-typedef struct _GVfsJobTrash GVfsJobTrash;
-typedef struct _GVfsJobDelete GVfsJobDelete;
-typedef struct _GVfsJobMakeDirectory GVfsJobMakeDirectory;
-typedef struct _GVfsJobMakeSymlink GVfsJobMakeSymlink;
-typedef struct _GVfsJobCopy GVfsJobCopy;
-typedef struct _GVfsJobMove GVfsJobMove;
-typedef struct _GVfsJobPush GVfsJobPush;
-typedef struct _GVfsJobPull GVfsJobPull;
-typedef struct _GVfsJobSetAttribute GVfsJobSetAttribute;
-typedef struct _GVfsJobQueryAttributes GVfsJobQueryAttributes;
-typedef struct _GVfsJobCreateMonitor GVfsJobCreateMonitor;
+typedef struct _GVfsJobOpenForRead GVfsJobOpenForRead;
+typedef struct _GVfsJobOpenIconForRead GVfsJobOpenIconForRead;
+typedef struct _GVfsJobSeekRead GVfsJobSeekRead;
+typedef struct _GVfsJobCloseRead GVfsJobCloseRead;
+typedef struct _GVfsJobRead GVfsJobRead;
+typedef struct _GVfsJobOpenForWrite GVfsJobOpenForWrite;
+typedef struct _GVfsJobWrite GVfsJobWrite;
+typedef struct _GVfsJobSeekWrite GVfsJobSeekWrite;
+typedef struct _GVfsJobCloseWrite GVfsJobCloseWrite;
+typedef struct _GVfsJobQueryInfo GVfsJobQueryInfo;
+typedef struct _GVfsJobQueryInfoRead GVfsJobQueryInfoRead;
+typedef struct _GVfsJobQueryInfoWrite GVfsJobQueryInfoWrite;
+typedef struct _GVfsJobQueryFsInfo GVfsJobQueryFsInfo;
+typedef struct _GVfsJobEnumerate GVfsJobEnumerate;
+typedef struct _GVfsJobSetDisplayName GVfsJobSetDisplayName;
+typedef struct _GVfsJobTrash GVfsJobTrash;
+typedef struct _GVfsJobDelete GVfsJobDelete;
+typedef struct _GVfsJobMakeDirectory GVfsJobMakeDirectory;
+typedef struct _GVfsJobMakeSymlink GVfsJobMakeSymlink;
+typedef struct _GVfsJobCopy GVfsJobCopy;
+typedef struct _GVfsJobMove GVfsJobMove;
+typedef struct _GVfsJobPush GVfsJobPush;
+typedef struct _GVfsJobPull GVfsJobPull;
+typedef struct _GVfsJobSetAttribute GVfsJobSetAttribute;
+typedef struct _GVfsJobQueryAttributes GVfsJobQueryAttributes;
+typedef struct _GVfsJobCreateMonitor GVfsJobCreateMonitor;
typedef gpointer GVfsBackendHandle;
@@ -248,6 +249,16 @@ struct _GVfsBackendClass
GVfsBackendHandle handle,
GFileInfo *info,
GFileAttributeMatcher *attribute_matcher);
+ void (*query_info_on_write)(GVfsBackend *backend,
+ GVfsJobQueryInfoWrite *job,
+ GVfsBackendHandle handle,
+ GFileInfo *info,
+ GFileAttributeMatcher *attribute_matcher);
+ gboolean (*try_query_info_on_write)(GVfsBackend *backend,
+ GVfsJobQueryInfoWrite *job,
+ GVfsBackendHandle handle,
+ GFileInfo *info,
+ GFileAttributeMatcher *attribute_matcher);
void (*query_fs_info) (GVfsBackend *backend,
GVfsJobQueryFsInfo *job,
const char *filename,