Vala automatically regards parameters as strings when an array of char
is used. We need to prevent this as the data given is an array of octets
ie. arbitrary data, not chars.
Signed-off-by: Claudio Bley <cbley(a)av-test.de>
---
libvirt-gobject/libvirt-gobject-stream.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libvirt-gobject/libvirt-gobject-stream.c
b/libvirt-gobject/libvirt-gobject-stream.c
index 2cb8967..4b3749b 100644
--- a/libvirt-gobject/libvirt-gobject-stream.c
+++ b/libvirt-gobject/libvirt-gobject-stream.c
@@ -283,8 +283,8 @@ G_DEFINE_BOXED_TYPE(GVirStreamHandle, gvir_stream_handle,
/**
* gvir_stream_receive:
* @stream: the stream
- * @buffer: a buffer to read data into (which should be at least @size
- * bytes long).
+ * @buffer: (array length=size) (element-type guint8): a buffer
+ * to read data into (which should be at least @size bytes long).
* @size: the number of bytes you want to read from the stream
* @cancellable: (allow-none): a %GCancellable or %NULL
* @error: #GError for error reporting, or %NULL to ignore.
--
1.7.11.7