summaryrefslogtreecommitdiff
path: root/src/gudev/gudevclient.c
diff options
context:
space:
mode:
authorEvan Nemerson <evan@nemerson.com>2014-05-18 00:25:06 -0700
committerKay Sievers <kay@vrfy.org>2014-05-18 18:58:40 +0200
commit2be6107255c3cf47bb5a9eddf2411953f29522e1 (patch)
treea373d733e56052e0a33df393ddcf423166189270 /src/gudev/gudevclient.c
parent5c868fe2e980216b32588e16fa949ebb1f1f7b95 (diff)
gudev: add missing (nullable) annotations on return values
Diffstat (limited to 'src/gudev/gudevclient.c')
-rw-r--r--src/gudev/gudevclient.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/gudev/gudevclient.c b/src/gudev/gudevclient.c
index a151b50ac6..1eec758935 100644
--- a/src/gudev/gudevclient.c
+++ b/src/gudev/gudevclient.c
@@ -338,7 +338,10 @@ g_udev_client_new (const gchar * const *subsystems)
*
* Gets all devices belonging to @subsystem.
*
- * Returns: (element-type GUdevDevice) (transfer full): A list of #GUdevDevice objects. The caller should free the result by using g_object_unref() on each element in the list and then g_list_free() on the list.
+ * Returns: (nullable) (element-type GUdevDevice) (transfer full): A
+ * list of #GUdevDevice objects. The caller should free the result by
+ * using g_object_unref() on each element in the list and then
+ * g_list_free() on the list.
*/
GList *
g_udev_client_query_by_subsystem (GUdevClient *client,
@@ -391,7 +394,8 @@ g_udev_client_query_by_subsystem (GUdevClient *client,
*
* Looks up a device for a type and device number.
*
- * Returns: (transfer full): A #GUdevDevice object or %NULL if the device was not found. Free with g_object_unref().
+ * Returns: (nullable) (transfer full): A #GUdevDevice object or %NULL
+ * if the device was not found. Free with g_object_unref().
*/
GUdevDevice *
g_udev_client_query_by_device_number (GUdevClient *client,
@@ -423,7 +427,8 @@ g_udev_client_query_by_device_number (GUdevClient *client,
*
* Looks up a device for a device file.
*
- * Returns: (transfer full): A #GUdevDevice object or %NULL if the device was not found. Free with g_object_unref().
+ * Returns: (nullable) (transfer full): A #GUdevDevice object or %NULL
+ * if the device was not found. Free with g_object_unref().
*/
GUdevDevice *
g_udev_client_query_by_device_file (GUdevClient *client,
@@ -459,7 +464,8 @@ g_udev_client_query_by_device_file (GUdevClient *client,
*
* Looks up a device for a sysfs path.
*
- * Returns: (transfer full): A #GUdevDevice object or %NULL if the device was not found. Free with g_object_unref().
+ * Returns: (nullable) (transfer full): A #GUdevDevice object or %NULL
+ * if the device was not found. Free with g_object_unref().
*/
GUdevDevice *
g_udev_client_query_by_sysfs_path (GUdevClient *client,
@@ -491,7 +497,8 @@ g_udev_client_query_by_sysfs_path (GUdevClient *client,
*
* Looks up a device for a subsystem and name.
*
- * Returns: (transfer full): A #GUdevDevice object or %NULL if the device was not found. Free with g_object_unref().
+ * Returns: (nullable) (transfer full): A #GUdevDevice object or %NULL
+ * if the device was not found. Free with g_object_unref().
*/
GUdevDevice *
g_udev_client_query_by_subsystem_and_name (GUdevClient *client,