Lines Matching defs:strlist
14 struct strlist {
19 struct strlist *strlist__new(bool dupstr, const char *slist);
20 void strlist__delete(struct strlist *slist);
22 void strlist__remove(struct strlist *slist, struct str_node *sn);
23 int strlist__load(struct strlist *slist, const char *filename);
24 int strlist__add(struct strlist *slist, const char *str);
26 struct str_node *strlist__entry(const struct strlist *slist, unsigned int idx);
27 struct str_node *strlist__find(struct strlist *slist, const char *entry);
29 static inline bool strlist__has_entry(struct strlist *slist, const char *entry)
34 static inline bool strlist__empty(const struct strlist *slist)
39 static inline unsigned int strlist__nr_entries(const struct strlist *slist)
44 /* For strlist iteration */
45 static inline struct str_node *strlist__first(struct strlist *slist)
60 * strlist_for_each - iterate over a strlist
62 * @slist: the &struct strlist for loop.
68 * strlist_for_each_safe - iterate over a strlist safe against removal of
72 * @slist: the &struct strlist for loop.
78 int strlist__parse_list(struct strlist *slist, const char *s);