gst: add some GIR array annotations
authorMark Nauwelaerts <mnauw@users.sourceforge.net>
Thu, 29 Mar 2018 16:59:43 +0000 (18:59 +0200)
committerMark Nauwelaerts <mnauw@users.sourceforge.net>
Fri, 13 Apr 2018 18:16:33 +0000 (20:16 +0200)
gst/gstbuffer.c
gst/gstutils.c

index 3c45cbd..5e61cbc 100644 (file)
@@ -1854,7 +1854,8 @@ gst_buffer_fill (GstBuffer * buffer, gsize offset, gconstpointer src,
  * gst_buffer_extract:
  * @buffer: a #GstBuffer.
  * @offset: the offset to extract
- * @dest: the destination address
+ * @dest: (out caller-allocates) (array length=size) (element-type guint8):
+ *     the destination address
  * @size: the size to extract
  *
  * Copy @size bytes starting from @offset in @buffer to @dest.
index e8749cb..13c1bcd 100644 (file)
@@ -50,7 +50,7 @@
 
 /**
  * gst_util_dump_mem:
- * @mem: a pointer to the memory to dump
+ * @mem: (array length=size): a pointer to the memory to dump
  * @size: the size of the memory block to dump
  *
  * Dumps the memory block into a hex representation. Useful for debugging.