rulimine/stage2/lib/config.h
Matteo Semenzato e7ae195304 Add pxe support
2020-11-05 01:53:18 +01:00

18 lines
439 B
C

#ifndef __LIB__CONFIG_H__
#define __LIB__CONFIG_H__
#include <stddef.h>
#include <stdbool.h>
#include <lib/part.h>
extern bool config_ready;
int init_config_disk(struct part *part);
int init_config_pxe(void);
int init_config(size_t config_size);
int config_get_entry_name(char *ret, size_t index, size_t limit);
int config_set_entry(size_t index);
char *config_get_value(char *buf, size_t index, size_t limit, const char *key);
#endif