8 struct rb_node rb_node;
13 struct rb_root entries;
17 struct strlist *strlist__new(bool dupstr, const char *slist);
18 void strlist__delete(struct strlist *self);
20 void strlist__remove(struct strlist *self, struct str_node *sn);
21 int strlist__load(struct strlist *self, const char *filename);
22 int strlist__add(struct strlist *self, const char *str);
24 bool strlist__has_entry(struct strlist *self, const char *entry);
26 static inline bool strlist__empty(const struct strlist *self)
28 return rb_first(&self->entries) == NULL;
31 int strlist__parse_list(struct strlist *self, const char *s);
32 #endif /* STRLIST_H_ */