:: limine / common / lib / config.h 853 B raw

1
#ifndef LIB__CONFIG_H__
2
#define LIB__CONFIG_H__
3
4
#include <stddef.h>
5
#include <stdbool.h>
6
#include <lib/part.h>
7
8
extern bool config_ready;
9
extern bool bad_config;
10
11
struct menu_entry {
12
    char *name;
13
    char *comment;
14
    struct menu_entry *parent;
15
    struct menu_entry *sub;
16
    bool expanded;
17
    char *body;
18
    struct menu_entry *next;
19
};
20
21
struct conf_tuple {
22
    char *value1;
23
    char *value2;
24
};
25
26
extern struct menu_entry *menu_tree;
27
28
int init_config_disk(struct volume *part);
29
bool init_config_smbios(void);
30
int init_config(size_t config_size);
31
32
#if defined (UEFI)
33
const char *config_get_raw(size_t *size_out);
34
#endif
35
36
char *config_get_value(const char *config, size_t index, const char *key);
37
struct conf_tuple config_get_tuple(const char *config, size_t index,
38
                                   const char *key1, const char *key2);
39
40
#endif
tab: 248 wrap: offon