diff options
author | David Zeuthen <david@fubar.dk> | 2005-07-13 03:38:01 +0000 |
---|---|---|
committer | David Zeuthen <david@fubar.dk> | 2005-07-13 03:38:01 +0000 |
commit | 1adb3ce004726fa4946009fce049ec8f61d51b44 (patch) | |
tree | ff51ee4d8a517e60b42b91261d1bba14d336d11e /hald/device.c | |
parent | 642c94b751d970e6bf2f411b20c4118c030161e0 (diff) |
Add prototype for hal_util_helper_invoke_with_pipes
New function (is based on hal_util_helper_invoke) (hal_util_helper_invoke):
Use the with_pipes
New function (hald_exec_method): New function
(hald_dbus_filter_handle_methods): Check and handle methods on
individual hal device objects
Add prototype for hal_device_property_get_strlist_elem
New function
Diffstat (limited to 'hald/device.c')
-rw-r--r-- | hald/device.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/hald/device.c b/hald/device.c index 79195852..43af7f4b 100644 --- a/hald/device.c +++ b/hald/device.c @@ -1090,6 +1090,25 @@ hal_device_property_get_strlist (HalDevice *device, return NULL; } +const char * +hal_device_property_get_strlist_elem (HalDevice *device, + const char *key, + guint index) +{ + GSList *strlist; + GSList *i; + + strlist = hal_device_property_get_strlist (device, key); + if (strlist == NULL) + return NULL; + + i = g_slist_nth (strlist, index); + if (i == NULL) + return NULL; + + return (const char *) i->data; +} + gboolean hal_device_property_strlist_append (HalDevice *device, const char *key, |