X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fsvec.h;h=7fdc6b5138a2dad3ff9cebe6a6353b95692b6d03;hb=b46ccdf582946f30d80735345c533c23a7f035c0;hp=35de6d4a9fe406f1f47924526d7c9f200e765cf4;hpb=f4ade10529d5a3882ff1d6937c19f5c1585eb8b1;p=openvswitch diff --git a/lib/svec.h b/lib/svec.h index 35de6d4a..7fdc6b51 100644 --- a/lib/svec.h +++ b/lib/svec.h @@ -19,7 +19,7 @@ #include #include - + #ifdef __cplusplus extern "C" { #endif @@ -36,6 +36,7 @@ void svec_init(struct svec *); void svec_clone(struct svec *, const struct svec *); void svec_destroy(struct svec *); void svec_clear(struct svec *); +bool svec_is_empty(const struct svec *); void svec_add(struct svec *, const char *); void svec_add_nocopy(struct svec *, char *); void svec_del(struct svec *, const char *); @@ -70,7 +71,7 @@ void svec_pop_back(struct svec *); ? (NAME) = (SVEC)->names[INDEX], 1 \ : 0); \ (INDEX)++) - + #ifdef __cplusplus } #endif