diff options
author | Karel Kočí <cynerd@email.cz> | 2014-12-14 19:28:28 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2014-12-14 19:28:28 +0100 |
commit | 4ec68e612e5d6670a154677b4c8914f22153b122 (patch) | |
tree | 7fa4379e01336d0ac4e3613bb6b4d6ea7e66a04e /programs/src/kconfig/symlist.h | |
parent | 5b99a9efbdd7026185266d71fca9615e124a6132 (diff) | |
download | linux-conf-perf-4ec68e612e5d6670a154677b4c8914f22153b122.tar.gz linux-conf-perf-4ec68e612e5d6670a154677b4c8914f22153b122.tar.bz2 linux-conf-perf-4ec68e612e5d6670a154677b4c8914f22153b122.zip |
Add kconfig_parser
kconfig_parser is placed to new folder tree. In folder "programs" will be all programs.
Files in folder programs/src/kconfig/kconfig are taken from kernel v3.18-rc3. In future, they should be updated if new changes will be added to kernel.
Diffstat (limited to 'programs/src/kconfig/symlist.h')
-rw-r--r-- | programs/src/kconfig/symlist.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/programs/src/kconfig/symlist.h b/programs/src/kconfig/symlist.h new file mode 100644 index 0000000..caa827a --- /dev/null +++ b/programs/src/kconfig/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_ */ |