From 694f3a78473e12d36fe7fbd0395c8f2aa56a9d62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 13 Apr 2015 11:37:27 +0200 Subject: 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. --- scripts/write_config/symlist.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 scripts/write_config/symlist.h (limited to 'scripts/write_config/symlist.h') 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 +#include +#include +#include +#include + +#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_ */ -- cgit v1.2.3