summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2015-08-03 11:57:25 +1200
committerRobert Ancell <robert.ancell@canonical.com>2015-08-03 12:05:37 +1200
commitcbb9033e9f51072fc7a83b41758ab56f3376a5c1 (patch)
treeae580489148f3ff06351b1f1c0306658ebe6782c
parent672373f9b9957e99421286dd1354a4c2a2e68383 (diff)
downloadgusb-cbb9033e9f51072fc7a83b41758ab56f3376a5c1.tar.gz
Add missing element-type annotations.
This allows g_usb_context_get_devices, usb_device_list_get_devices and g_usb_device_get_children to be used in languages that use gobject introspection like Vala, Python etc.
-rw-r--r--gusb/gusb-context.c2
-rw-r--r--gusb/gusb-device-list.c2
-rw-r--r--gusb/gusb-device.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/gusb/gusb-context.c b/gusb/gusb-context.c
index 5c7dfe2..33b0ecb 100644
--- a/gusb/gusb-context.c
+++ b/gusb/gusb-context.c
@@ -918,7 +918,7 @@ _g_usb_context_lookup_product (GUsbContext *context,
* g_usb_context_get_devices:
* @context: a #GUsbContext
*
- * Return value: (transfer full): a new #GPtrArray of #GUsbDevice's.
+ * Return value: (transfer full) (element-type GUsbDevice): a new #GPtrArray of #GUsbDevice's.
*
* Since: 0.2.2
**/
diff --git a/gusb/gusb-device-list.c b/gusb/gusb-device-list.c
index b482523..3a27ee4 100644
--- a/gusb/gusb-device-list.c
+++ b/gusb/gusb-device-list.c
@@ -181,7 +181,7 @@ g_usb_device_list_init (GUsbDeviceList *list)
* g_usb_device_list_get_devices:
* @list: a #GUsbDeviceList
*
- * Return value: (transfer full): a new #GPtrArray of #GUsbDevice's.
+ * Return value: (transfer full) (element-type GUsbDevice): a new #GPtrArray of #GUsbDevice's.
*
* Since: 0.1.0
**/
diff --git a/gusb/gusb-device.c b/gusb/gusb-device.c
index fcb3cd4..8d3b521 100644
--- a/gusb/gusb-device.c
+++ b/gusb/gusb-device.c
@@ -1433,7 +1433,7 @@ g_usb_device_get_parent (GUsbDevice *device)
*
* Gets the device children if any exist.
*
- * Return value: (transfer full): an array of #GUsbDevice
+ * Return value: (transfer full) (element-type GUsbDevice): an array of #GUsbDevice
*
* Since: 0.2.4
**/