projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ovs.json: Optimize __dump_string().
[openvswitch]
/
lib
/
list.h
diff --git
a/lib/list.h
b/lib/list.h
index 915ee854df25b11e69ae9b7225197e05892d5dde..91c39663552f3e2cf8435e5571f835b69c983372 100644
(file)
--- a/
lib/list.h
+++ b/
lib/list.h
@@
-53,6
+53,8
@@
struct list *list_back(const struct list *);
/* List properties. */
size_t list_size(const struct list *);
bool list_is_empty(const struct list *);
/* List properties. */
size_t list_size(const struct list *);
bool list_is_empty(const struct list *);
+bool list_is_singleton(const struct list *);
+bool list_is_short(const struct list *);
#define LIST_FOR_EACH(ITER, MEMBER, LIST) \
for (ASSIGN_CONTAINER(ITER, (LIST)->next, MEMBER); \
#define LIST_FOR_EACH(ITER, MEMBER, LIST) \
for (ASSIGN_CONTAINER(ITER, (LIST)->next, MEMBER); \