0001
0002
0003
0004 #ifndef __LIBBPF_STRSET_H
0005 #define __LIBBPF_STRSET_H
0006
0007 #include <stdbool.h>
0008 #include <stddef.h>
0009
0010 struct strset;
0011
0012 struct strset *strset__new(size_t max_data_sz, const char *init_data, size_t init_data_sz);
0013 void strset__free(struct strset *set);
0014
0015 const char *strset__data(const struct strset *set);
0016 size_t strset__data_size(const struct strset *set);
0017
0018 int strset__find_str(struct strset *set, const char *s);
0019 int strset__add_str(struct strset *set, const char *s);
0020
0021 #endif