summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrindhold <grindhold@gmx.net>2019-09-25 22:17:02 +0200
committerRichard Hughes <richard@hughsie.com>2019-09-26 10:24:47 +0100
commit636efc0624aa2a88174220fcabc9764c13d7febf (patch)
tree6214a12c8b75a3b7d7e059e57594e70721c8c64f
parent81b47d56c66910e82dbbab6b23bf5fcc5fa5b441 (diff)
downloadgusb-636efc0624aa2a88174220fcabc9764c13d7febf.tar.gz
gi: made actual_length introspection annotations
the actual_length parameter of GUsbDevice's transfer-methods should be out parameters. otherwise the generated vala bindings will cause programs to segfault.
-rw-r--r--gusb/gusb-device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gusb/gusb-device.c b/gusb/gusb-device.c
index a79bfa3..35150a1 100644
--- a/gusb/gusb-device.c
+++ b/gusb/gusb-device.c
@@ -932,7 +932,7 @@ g_usb_device_sync_transfer_cb (GUsbDevice *device,
* @data: (array length=length): a suitably-sized data buffer for
* either input or output
* @length: the length field for the setup packet.
- * @actual_length: the actual number of bytes sent, or %NULL
+ * @actual_length: (out) (optional): the actual number of bytes sent, or %NULL
* @timeout: timeout timeout (in millseconds) that this function should wait
* before giving up due to no response being received. For an unlimited
* timeout, use 0.
@@ -999,7 +999,7 @@ g_usb_device_control_transfer (GUsbDevice *device,
* @data: (array length=length): a suitably-sized data buffer for
* either input or output
* @length: the length field for the setup packet.
- * @actual_length: the actual number of bytes sent, or %NULL
+ * @actual_length: (out) (optional): the actual number of bytes sent, or %NULL
* @timeout: timeout timeout (in millseconds) that this function should wait
* before giving up due to no response being received. For an unlimited
* timeout, use 0.
@@ -1056,7 +1056,7 @@ g_usb_device_bulk_transfer (GUsbDevice *device,
* @data: (array length=length): a suitably-sized data buffer for
* either input or output
* @length: the length field for the setup packet.
- * @actual_length: the actual number of bytes sent, or %NULL
+ * @actual_length: (out) (optional): the actual number of bytes sent, or %NULL
* @timeout: timeout timeout (in millseconds) that this function should wait
* before giving up due to no response being received. For an unlimited
* timeout, use 0.