2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-25 15:07:05 +00:00

sset: New function sset_from_delimited_string().

This simplifies code in a couple of places.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-By: Ryan Moats <rmoats@us.ibm.com>
This commit is contained in:
Ben Pfaff
2016-06-24 21:30:39 -07:00
parent 6026f53491
commit 63a10e1e4c
4 changed files with 26 additions and 20 deletions

View File

@@ -43,6 +43,9 @@ void sset_clone(struct sset *, const struct sset *);
void sset_swap(struct sset *, struct sset *);
void sset_moved(struct sset *);
void sset_from_delimited_string(struct sset *, const char *s,
const char *delimiters);
/* Count. */
bool sset_is_empty(const struct sset *);
size_t sset_count(const struct sset *);