X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udev%2Flib%2Flibudev-list.c;h=8545835078fbe93fd28e3bdb4049b552f42bb721;hb=df1dcc09efb80d2fbc15790bd5237fad364408a0;hp=4849d469439682bbab63ad1d099375bcd2867037;hpb=8cd2e972e537a351f0948e7762d2d2e51ad358ef;p=elogind.git diff --git a/udev/lib/libudev-list.c b/udev/lib/libudev-list.c index 4849d4694..854583507 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; +}