diff options
author | Karel Kočí <cynerd@email.cz> | 2015-04-13 11:37:27 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-04-13 11:37:27 +0200 |
commit | 694f3a78473e12d36fe7fbd0395c8f2aa56a9d62 (patch) | |
tree | d000befbdbf439d339c11c6ee2d216b93069bd0f /scripts/write_config/symlist.h | |
parent | e5ede3c94dfca33ec2b1fac5e08562922c5f594d (diff) | |
download | linux-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.h | 23 |
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_ */ |