From 4ec68e612e5d6670a154677b4c8914f22153b122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 14 Dec 2014 19:28:28 +0100 Subject: 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. --- programs/src/kconfig/symlist.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 programs/src/kconfig/symlist.h (limited to 'programs/src/kconfig/symlist.h') 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 +#include +#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_ */ -- cgit v1.2.3