mirror of
https://github.com/limine-bootloader/limine
synced 2024-12-05 22:52:36 +03:00
3dd0a6fb41
based on @qookei's original patch with small changes.
36 lines
756 B
C
36 lines
756 B
C
#ifndef __LIB__CONFIG_H__
|
|
#define __LIB__CONFIG_H__
|
|
|
|
#include <stddef.h>
|
|
#include <stdbool.h>
|
|
#include <lib/part.h>
|
|
|
|
extern bool config_ready;
|
|
extern bool bad_config;
|
|
|
|
struct menu_entry {
|
|
char name[64];
|
|
char *comment;
|
|
struct menu_entry *parent;
|
|
struct menu_entry *sub;
|
|
bool expanded;
|
|
char *body;
|
|
struct menu_entry *next;
|
|
};
|
|
|
|
struct conf_tuple {
|
|
char *value1;
|
|
char *value2;
|
|
};
|
|
|
|
extern struct menu_entry *menu_tree;
|
|
|
|
int init_config_disk(struct volume *part);
|
|
int init_config(size_t config_size);
|
|
|
|
char *config_get_value(const char *config, size_t index, const char *key);
|
|
struct conf_tuple config_get_tuple(const char *config, size_t index,
|
|
const char *key1, const char *key2);
|
|
|
|
#endif
|