diff options
author | David Zeuthen <davidz@redhat.com> | 2010-12-14 12:37:40 -0500 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2010-12-14 12:37:40 -0500 |
commit | 0976fd063e1e488e388ec922fcd4dbed5b8da938 (patch) | |
tree | 54857c8694f9f8aa2eecfffb832226fa39512526 /extras/gudev/gudevclient.c | |
parent | 48a0170b111b55e961be769d2cc4890511bcd991 (diff) |
Add GUdevEnumerator type and Device.get_tags() method
Also add JS example to check the added API works.
Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'extras/gudev/gudevclient.c')
-rw-r--r-- | extras/gudev/gudevclient.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/extras/gudev/gudevclient.c b/extras/gudev/gudevclient.c index 9ebd8f8d8f..853454b6f0 100644 --- a/extras/gudev/gudevclient.c +++ b/extras/gudev/gudevclient.c @@ -47,12 +47,13 @@ * memory) and as such there are no asynchronous versions of the * provided methods. * - * To get information about a device, use + * To get #GUdevDevice objects, use * g_udev_client_query_by_subsystem(), * g_udev_client_query_by_device_number(), * g_udev_client_query_by_device_file(), - * g_udev_client_query_by_sysfs_path() or - * g_udev_client_query_by_subsystem_and_name(). + * g_udev_client_query_by_sysfs_path(), + * g_udev_client_query_by_subsystem_and_name() + * or the #GUdevEnumerator type. * * To listen to uevents, connect to the #GUdevClient::uevent signal. */ @@ -459,8 +460,6 @@ g_udev_client_query_by_device_file (GUdevClient *client, * @sysfs_path: A sysfs path. * * 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(). */ GUdevDevice * g_udev_client_query_by_sysfs_path (GUdevClient *client, @@ -518,3 +517,10 @@ g_udev_client_query_by_subsystem_and_name (GUdevClient *client, return device; } +struct udev * +_g_udev_client_get_udev (GUdevClient *client) +{ + g_return_val_if_fail (G_UDEV_IS_CLIENT (client), NULL); + return client->priv->udev; +} + |