summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-02-02 11:25:34 +0100
committerHans de Goede <hdegoede@redhat.com>2014-03-03 08:13:55 +0100
commit10c64e80569bbd35e97916a067f553cab27454b5 (patch)
treeb6aa93b20c9310f485e585ca7c70c6e2dbae8ce5 /include
parent3346166a6596115421702c1f7e2732215674ab8e (diff)
OdevAttribute: Add config_odev_get_attribute helper
Add a config_odev_get_attribute helper, and replace the diy looping over all the attributes done in various places with calls to this helper. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include')
-rw-r--r--include/hotplug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hotplug.h b/include/hotplug.h
index 29a22c4da..ee7b7d7d5 100644
--- a/include/hotplug.h
+++ b/include/hotplug.h
@@ -53,6 +53,9 @@ Bool
config_odev_add_attribute(struct OdevAttributes *attribs, int attrib,
const char *attrib_name);
+char *
+config_odev_get_attribute(struct OdevAttributes *attribs, int attrib_id);
+
void
config_odev_free_attributes(struct OdevAttributes *attribs);