aboutsummaryrefslogtreecommitdiff
path: root/scripts/write_config/symlist.h
blob: 3736b2b7ecc9fed6ac74a0847d2c8c2da2751d82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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_ */