diff options
author | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 10:34:09 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 10:34:09 +0000 |
commit | 824891203199e3dd493846c94374020f422422db (patch) | |
tree | 1b13408d07d9f5ec38896e1ec2e71bc41e89a9a4 /daemon/gvfsjobopenforread.h | |
parent | 5d528aa6ebe7d9a4b0b669e9654729654ee209db (diff) | |
download | gvfs-824891203199e3dd493846c94374020f422422db.tar.gz |
Rename GVfsReadStream to GVfsReadChannel
Make GVfsJobDBus class to share code
Make GVfsJob backend be construct property
Implement daemon-side support for dbus call cancellation
Finish dbus call cancellation client-side
Original git commit by Alexander Larsson <alex@greebo.(none)> at 1165257484 +0100
svn path=/trunk/; revision=217
Diffstat (limited to 'daemon/gvfsjobopenforread.h')
-rw-r--r-- | daemon/gvfsjobopenforread.h | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/daemon/gvfsjobopenforread.h b/daemon/gvfsjobopenforread.h index c000446e..b301bb5c 100644 --- a/daemon/gvfsjobopenforread.h +++ b/daemon/gvfsjobopenforread.h @@ -2,10 +2,9 @@ #define __G_VFS_JOB_OPEN_FOR_READ_H__ #include <dbus/dbus.h> -#include <gvfsjob.h> +#include <gvfsjobdbus.h> #include <gvfsbackend.h> -#include <gvfsreadstream.h> - +#include <gvfsreadchannel.h> G_BEGIN_DECLS @@ -21,31 +20,29 @@ typedef struct _GVfsJobOpenForReadClass GVfsJobOpenForReadClass; struct _GVfsJobOpenForRead { - GVfsJob parent_instance; + GVfsJobDBus parent_instance; - DBusConnection *connection; - DBusMessage *message; char *filename; GVfsBackendHandle backend_handle; gboolean can_seek; - GVfsReadStream *read_stream; + GVfsReadChannel *read_channel; }; struct _GVfsJobOpenForReadClass { - GVfsJobClass parent_class; + GVfsJobDBusClass parent_class; }; GType g_vfs_job_open_for_read_get_type (void) G_GNUC_CONST; -GVfsJob * g_vfs_job_open_for_read_new (DBusConnection *connection, - DBusMessage *message, - GVfsBackend *backend); -void g_vfs_job_open_for_read_set_handle (GVfsJobOpenForRead *job, - GVfsBackendHandle handle); -void g_vfs_job_open_for_read_set_can_seek (GVfsJobOpenForRead *job, - gboolean can_seek); -GVfsReadStream *g_vfs_job_open_for_read_steal_stream (GVfsJobOpenForRead *job); +GVfsJob * g_vfs_job_open_for_read_new (DBusConnection *connection, + DBusMessage *message, + GVfsBackend *backend); +void g_vfs_job_open_for_read_set_handle (GVfsJobOpenForRead *job, + GVfsBackendHandle handle); +void g_vfs_job_open_for_read_set_can_seek (GVfsJobOpenForRead *job, + gboolean can_seek); +GVfsReadChannel *g_vfs_job_open_for_read_steal_channel (GVfsJobOpenForRead *job); G_END_DECLS |