[libvirt] [PATCH]: Add another portion virStream bindings (C# bindings, libvirt-csharp.git)
Matthias Bolte
matthias.bolte at googlemail.com
Fri Jul 15 13:58:18 UTC 2011
2011/7/14 Anthony Fox <a.podavalov at gmail.com>:
>
>
ACK and applied, thanks. The comment to virStreamRecv misses two lines
in the <returns> block, so I'm squashing this in (this diff will
probably come through mangled because of the long lines)
diff --git a/Stream.cs b/Stream.cs
index b349605..d824726 100644
--- a/Stream.cs
+++ b/Stream.cs
@@ -109,6 +109,8 @@ namespace Libvirt
/// size of @data buffer
/// </param>
/// <returns>
+ /// the number of bytes read, which may be less than
requested.Returns 0 when the end of the stream
+ /// is reached, at which time the caller should invoke
virStreamFinish() to get confirmation of stream
/// completion. Returns -1 upon error, at which time
the stream will be marked as aborted,
/// and the caller should now release the stream with
virStreamFree. Returns -2 if there is no
/// data pending to be read & the stream is marked as
non-blocking.
--
Matthias Bolte
http://photron.blogspot.com
More information about the libvir-list
mailing list