struct udev_list_node *list;
char *name;
char *value;
+ int flag;
};
/* list head point to itself if empty */
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;
+}
extern void udev_list_entry_remove(struct udev_list_entry *entry);
extern struct udev_list_entry *udev_list_get_entry(struct udev_list_node *list);
extern void udev_list_entry_move_to_end(struct udev_list_entry *list_entry);
+extern int udev_list_entry_get_flag(struct udev_list_entry *list_entry);
+extern void udev_list_entry_set_flag(struct udev_list_entry *list_entry, int flag);
#define list_entry_foreach_safe(entry, tmp, first) \
for (entry = first, \
tmp = udev_list_entry_get_next(entry); \