Lines Matching refs:slist
32 struct strlist *strlist__new(const char *slist, const struct strlist_config *config);
33 void strlist__delete(struct strlist *slist);
35 void strlist__remove(struct strlist *slist, struct str_node *sn);
36 int strlist__load(struct strlist *slist, const char *filename);
37 int strlist__add(struct strlist *slist, const char *str);
39 struct str_node *strlist__entry(const struct strlist *slist, unsigned int idx);
40 struct str_node *strlist__find(struct strlist *slist, const char *entry);
42 static inline bool strlist__has_entry(struct strlist *slist, const char *entry) in strlist__has_entry() argument
44 return strlist__find(slist, entry) != NULL; in strlist__has_entry()
47 static inline bool strlist__empty(const struct strlist *slist) in strlist__empty() argument
49 return rblist__empty(&slist->rblist); in strlist__empty()
52 static inline unsigned int strlist__nr_entries(const struct strlist *slist) in strlist__nr_entries() argument
54 return rblist__nr_entries(&slist->rblist); in strlist__nr_entries()
58 static inline struct str_node *strlist__first(struct strlist *slist) in strlist__first() argument
60 struct rb_node *rn = rb_first_cached(&slist->rblist.entries); in strlist__first()
77 #define strlist__for_each_entry(pos, slist) \ argument
78 for (pos = strlist__first(slist); pos; pos = strlist__next(pos))
87 #define strlist__for_each_entry_safe(pos, n, slist) \ argument
88 for (pos = strlist__first(slist), n = strlist__next(pos); pos;\