summaryrefslogtreecommitdiff
path: root/daemon/gvfswritechannel.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@src.gnome.org>2007-09-13 14:33:46 +0000
committerAlexander Larsson <alexl@src.gnome.org>2007-09-13 14:33:46 +0000
commit83b5d35fda9f011042fabbcf410ce67284475eb2 (patch)
treed51d0acd67bad88cc5798ef237e008538abb2a5a /daemon/gvfswritechannel.c
parent31553c7a759a472b382afdba77e531536f64c6e9 (diff)
downloadgvfs-83b5d35fda9f011042fabbcf410ce67284475eb2.tar.gz
Implement etag sending on close in daemon stream
Original git commit by Alexander Larsson <alexl@redhat.com> at 1185358218 +0200 svn path=/trunk/; revision=709
Diffstat (limited to 'daemon/gvfswritechannel.c')
-rw-r--r--daemon/gvfswritechannel.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/daemon/gvfswritechannel.c b/daemon/gvfswritechannel.c
index d45f6a65..48b9c551 100644
--- a/daemon/gvfswritechannel.c
+++ b/daemon/gvfswritechannel.c
@@ -156,7 +156,8 @@ g_vfs_write_channel_send_seek_offset (GVfsWriteChannel *write_channel,
/* Might be called on an i/o thread
*/
void
-g_vfs_write_channel_send_closed (GVfsWriteChannel *write_channel)
+g_vfs_write_channel_send_closed (GVfsWriteChannel *write_channel,
+ const char *etag)
{
GVfsDaemonSocketProtocolReply reply;
GVfsChannel *channel;
@@ -166,9 +167,9 @@ g_vfs_write_channel_send_closed (GVfsWriteChannel *write_channel)
reply.type = g_htonl (G_VFS_DAEMON_SOCKET_PROTOCOL_REPLY_CLOSED);
reply.seq_nr = g_htonl (g_vfs_channel_get_current_seq_nr (channel));
reply.arg1 = g_htonl (0);
- reply.arg2 = g_htonl (0);
+ reply.arg2 = g_htonl (strlen (etag));
- g_vfs_channel_send_reply (channel, &reply, NULL, 0);
+ g_vfs_channel_send_reply (channel, &reply, etag, strlen (etag));
}
/* Might be called on an i/o thread