vswitch.ovsidl: Fix comments.
[openvswitch] / lib / svec.c
index 078b107042195900bf35da392cefd48b35161f07..81a36b57ae7544c9ef9d7fa5b1166790d961601a 100644 (file)
@@ -59,6 +59,12 @@ svec_clear(struct svec *svec)
     svec->n = 0;
 }
 
+bool
+svec_is_empty(const struct svec *svec)
+{
+    return svec->n == 0;
+}
+
 void
 svec_add(struct svec *svec, const char *name)
 {