aboutsummaryrefslogtreecommitdiff
path: root/programs/src/kconfig_parser/symlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'programs/src/kconfig_parser/symlist.h')
-rw-r--r--programs/src/kconfig_parser/symlist.h24
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_ */