aboutsummaryrefslogtreecommitdiff
path: root/scripts/write_config/symlist.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-04-13 11:37:27 +0200
committerKarel Kočí <cynerd@email.cz>2015-04-13 11:37:27 +0200
commit694f3a78473e12d36fe7fbd0395c8f2aa56a9d62 (patch)
treed000befbdbf439d339c11c6ee2d216b93069bd0f /scripts/write_config/symlist.h
parente5ede3c94dfca33ec2b1fac5e08562922c5f594d (diff)
downloadlinux-conf-perf-694f3a78473e12d36fe7fbd0395c8f2aa56a9d62.tar.gz
linux-conf-perf-694f3a78473e12d36fe7fbd0395c8f2aa56a9d62.tar.bz2
linux-conf-perf-694f3a78473e12d36fe7fbd0395c8f2aa56a9d62.zip
Add first implementation of write_config
write_config is application for default .config generation. It will be using default API from kconfig to generate it. Now implemented only symbol map loading.
Diffstat (limited to 'scripts/write_config/symlist.h')
-rw-r--r--scripts/write_config/symlist.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/write_config/symlist.h b/scripts/write_config/symlist.h
new file mode 100644
index 0000000..3736b2b
--- /dev/null
+++ b/scripts/write_config/symlist.h
@@ -0,0 +1,23 @@
+#include <stdlib.h>
+#include <stdbool.h>
+#include <string.h>
+#include <stdio.h>
+#include <kconfig/lkc.h>
+
+#ifndef _SYMLIST_H_
+#define _SYMLIST_H_
+
+struct symlist_el {
+ unsigned int id;
+ struct symbol *sym;
+};
+
+struct symlist {
+ struct symlist_el *array;
+ size_t size;
+};
+
+struct symlist *symlist_read(FILE *f);
+struct symbol *symlist_get(struct symlist *, unsigned int id);
+
+#endif /* _SYMLIST_H_ */