[libvirt-glib] [PATCH 3/3] gvir_stream_receive: annotate buffer parameter with "element-type guint8"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]