summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2022-09-12 14:03:04 +0100
committerRichard Hughes <richard@hughsie.com>2022-09-12 14:37:47 +0100
commit83c5e963843f8cbfa5c61204c1d15efd3692551d (patch)
treec726d03fd6ffb84b331a7686ce4910bc61b1dcae
parent42c7b8d28410471a81f37dedcde09c704bc88f50 (diff)
downloadgusb-83c5e963843f8cbfa5c61204c1d15efd3692551d.tar.gz
trivial: Fix some docs warnings when compiling the tarball
-rw-r--r--gusb/gusb-context.c4
-rw-r--r--gusb/gusb-device-event.c2
-rw-r--r--gusb/meson.build3
3 files changed, 5 insertions, 4 deletions
diff --git a/gusb/gusb-context.c b/gusb/gusb-context.c
index 19d534f..0ca8282 100644
--- a/gusb/gusb-context.c
+++ b/gusb/gusb-context.c
@@ -357,7 +357,7 @@ g_usb_context_remove_device(GUsbContext *self, struct libusb_device *dev)
/**
* g_usb_context_load:
- * @context: a #GUsbContext
+ * @self: a #GUsbContext
* @json_object: a #JsonObject
* @error: a #GError, or %NULL
*
@@ -403,7 +403,7 @@ g_usb_context_load(GUsbContext *self, JsonObject *json_object, GError **error)
/**
* g_usb_context_save:
- * @context: a #GUsbContext
+ * @self: a #GUsbContext
* @json_builder: a #JsonBuilder
* @error: a #GError, or %NULL
*
diff --git a/gusb/gusb-device-event.c b/gusb/gusb-device-event.c
index d268807..0d9eb2e 100644
--- a/gusb/gusb-device-event.c
+++ b/gusb/gusb-device-event.c
@@ -152,7 +152,7 @@ g_usb_device_event_get_id(GUsbDeviceEvent *self)
*
* Gets any status data from the event.
*
- * Return value: (transfer none): a `enum libusb_transfer_status`, or -1 for failure
+ * Return value: a `enum libusb_transfer_status`, or -1 for failure
*
* Since: 0.4.0
**/
diff --git a/gusb/meson.build b/gusb/meson.build
index 2b3ad07..71a755b 100644
--- a/gusb/meson.build
+++ b/gusb/meson.build
@@ -152,6 +152,7 @@ libgusb_girtarget = gnome.generate_gir(gusb,
includes : [
'Gio-2.0',
'GObject-2.0',
+ 'Json-1.0',
],
install : true
)
@@ -194,7 +195,7 @@ endif
if get_option('vapi')
gnome.generate_vapi('gusb',
sources: libgusb_girtarget[0],
- packages: ['gio-2.0'],
+ packages: ['gio-2.0', 'json-glib-1.0'],
install: true,
)
endif