summaryrefslogtreecommitdiff
path: root/udev/lib/libudev-list.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-11 18:40:04 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-10-11 18:40:04 +0200
commitdf1dcc09efb80d2fbc15790bd5237fad364408a0 (patch)
tree17f66c049721cd273f49f728112a2305c9a5e4bc /udev/lib/libudev-list.c
parent9925ab0451b307b5766b12134bdc178e4c89f297 (diff)
libudev: list - add flag
Diffstat (limited to 'udev/lib/libudev-list.c')
-rw-r--r--udev/lib/libudev-list.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/udev/lib/libudev-list.c b/udev/lib/libudev-list.c
index 4849d46943..8545835078 100644
--- a/udev/lib/libudev-list.c
+++ b/udev/lib/libudev-list.c
@@ -33,6 +33,7 @@ struct udev_list_entry {
struct udev_list_node *list;
char *name;
char *value;
+ int flag;
};
/* list head point to itself if empty */
@@ -215,3 +216,17 @@ const char *udev_list_entry_get_value(struct udev_list_entry *list_entry)
return NULL;
return list_entry->value;
}
+
+extern int udev_list_entry_get_flag(struct udev_list_entry *list_entry)
+{
+ if (list_entry == NULL)
+ return -EINVAL;
+ return list_entry->flag;
+}
+
+extern void udev_list_entry_set_flag(struct udev_list_entry *list_entry, int flag)
+{
+ if (list_entry == NULL)
+ return;
+ list_entry->flag = flag;
+}