]> rtime.felk.cvut.cz Git - linux-conf-perf.git/blob - scripts/write_config/symlist.h
8bc61c168627fedd9abd655b14145fc52d24f972
[linux-conf-perf.git] / scripts / write_config / symlist.h
1 #include <stdlib.h>
2 #include <stdbool.h>
3 #include <string.h>
4 #include <stdio.h>
5 #include <kconfig/lkc.h>
6
7 #ifndef _SYMLIST_H_
8 #define _SYMLIST_H_
9
10 struct symlist_el {
11     unsigned int id;
12     struct symbol *sym;
13 };
14
15 struct symlist {
16     struct symlist_el *array;
17     size_t size;
18     unsigned maxid;
19 };
20
21 struct symlist *symlist_read(FILE *f);
22 struct symbol *symlist_get(struct symlist *, unsigned int id);
23
24 #endif /* _SYMLIST_H_ */