diff options
author | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 09:50:55 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 09:50:55 +0000 |
commit | d6f1e3a1a699a8cc16062c2e5c2302c5024af4c1 (patch) | |
tree | 3824638b3c1d409e583e8507fd6bb7a8cee75433 /daemon/gvfsjobopenforread.c | |
parent | fd8347bc624177853d1a3e85be93a09d6dc788da (diff) | |
download | gvfs-d6f1e3a1a699a8cc16062c2e5c2302c5024af4c1.tar.gz |
Implement seek
Original git commit by Alexander Larsson <alex@localhost.localdomain> at 1163674878 +0100
svn path=/trunk/; revision=156
Diffstat (limited to 'daemon/gvfsjobopenforread.c')
-rw-r--r-- | daemon/gvfsjobopenforread.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/daemon/gvfsjobopenforread.c b/daemon/gvfsjobopenforread.c index 45be66b9..04a9e5a9 100644 --- a/daemon/gvfsjobopenforread.c +++ b/daemon/gvfsjobopenforread.c @@ -106,6 +106,13 @@ g_vfs_job_open_for_read_set_handle (GVfsJobOpenForRead *job, job->backend_handle = handle; } +void +g_vfs_job_open_for_read_set_can_seek (GVfsJobOpenForRead *job, + gboolean can_seek) +{ + job->can_seek = can_seek; +} + /* Might be called on an i/o thread */ static DBusMessage * create_reply (GVfsJob *job, @@ -119,6 +126,7 @@ create_reply (GVfsJob *job, int remote_fd; int fd_id; gboolean res; + dbus_bool_t can_seek; g_assert (open_job->backend_handle != NULL); @@ -145,8 +153,10 @@ create_reply (GVfsJob *job, close (remote_fd); reply = dbus_message_new_method_return (message); + can_seek = open_job->can_seek; res = dbus_message_append_args (reply, DBUS_TYPE_UINT32, &fd_id, + DBUS_TYPE_BOOLEAN, &can_seek, DBUS_TYPE_INVALID); g_vfs_read_stream_set_user_data (stream, open_job->backend_handle); |