X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Flist.h;h=91c39663552f3e2cf8435e5571f835b69c983372;hb=5442edb9e0afb6fdc4cd81e5d1ebd3e0d4e6accf;hp=915ee854df25b11e69ae9b7225197e05892d5dde;hpb=0574c613cd00c03d287316a4c78c797ba0beea51;p=openvswitch diff --git a/lib/list.h b/lib/list.h index 915ee854..91c39663 100644 --- 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 *); +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); \