diff options
author | Karel Kočí <cynerd@email.cz> | 2015-01-14 12:39:50 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-01-14 12:39:50 +0100 |
commit | afeddb02f4482efce98a9a411c04d31daeb9aee4 (patch) | |
tree | 02353e650321f7115e3cb113681c8fef28833f05 /programs/src/kconfig_parser/symlist.h | |
parent | 48a732fecf66799a4eba0194006f8726306d5e45 (diff) | |
download | linux-conf-perf-afeddb02f4482efce98a9a411c04d31daeb9aee4.tar.gz linux-conf-perf-afeddb02f4482efce98a9a411c04d31daeb9aee4.tar.bz2 linux-conf-perf-afeddb02f4482efce98a9a411c04d31daeb9aee4.zip |
Output folder added to kconfig_parser
Also kconfig folder in programs/src is renamed to kconfig_parser
Diffstat (limited to 'programs/src/kconfig_parser/symlist.h')
-rw-r--r-- | programs/src/kconfig_parser/symlist.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/programs/src/kconfig_parser/symlist.h b/programs/src/kconfig_parser/symlist.h new file mode 100644 index 0000000..caa827a --- /dev/null +++ b/programs/src/kconfig_parser/symlist.h @@ -0,0 +1,24 @@ +#ifndef _SYMLIST_H_ +#define _SYMLIST_H_ + +#include <stdbool.h> +#include <string.h> +#include "boolexp.h" + +struct symlist_el { + unsigned int id; + char *name; + struct boolexp *be; +}; +struct symlist { + struct symlist_el *array; + size_t size, pos; +}; + +struct symlist *symlist_create(); +void symlist_add(struct symlist *sl, char *name); +struct symlist_el *symlist_find(struct symlist *sl, char *name); +void symlist_print(struct symlist *sl); +void symlist_free(struct symlist *sl); + +#endif /* _SYMLIST_H_ */ |