[Spice-commits] src/spice-channel.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Nov 22 14:58:32 UTC 2018
src/spice-channel.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit e2d82a9731cd3e77b544036cdd32696de15a5cb5
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Tue Nov 20 12:14:44 2018 +0000
spice-channel: Add some comment to spice_channel_read
Document return value.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
diff --git a/src/spice-channel.c b/src/spice-channel.c
index 1486137..7c54ab0 100644
--- a/src/spice-channel.c
+++ b/src/spice-channel.c
@@ -1124,6 +1124,8 @@ static int spice_channel_read_sasl(SpiceChannel *channel, void *data, size_t len
/*
* Fill the 'data' buffer up with exactly 'len' bytes worth of data
+ * Returns 0 if connection was closed or on unknown errors, <0 for error and
+ * length on success
*/
/* coroutine context */
static int spice_channel_read(SpiceChannel *channel, void *data, size_t length)
More information about the Spice-commits
mailing list