X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=src%2Fgudev%2Fgudevclient.c;h=8b9516cba87e0b7fe564153dcb89dad66363191d;hb=2eec67acbb00593e414549a7e5b35eb7dd776b1b;hp=a151b50ac6dc28f01cf7a336813967849487460b;hpb=f274ece0f76b5709408821e317e87aef76123db6;p=elogind.git diff --git a/src/gudev/gudevclient.c b/src/gudev/gudevclient.c index a151b50ac..8b9516cba 100644 --- a/src/gudev/gudevclient.c +++ b/src/gudev/gudevclient.c @@ -23,6 +23,7 @@ #include #include +#include #include "gudevclient.h" #include "gudevdevice.h" @@ -338,7 +339,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 +395,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 +428,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 +465,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 +498,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,