mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-21 18:30:20 +00:00
42 lines
790 B
C
42 lines
790 B
C
/*
|
|
*
|
|
* (c) 2007 Laurent Vivier <Laurent@lvivier.info>
|
|
*
|
|
*/
|
|
|
|
typedef struct emile_config {
|
|
FILE* fd;
|
|
char* header;
|
|
int header_size;
|
|
char* current;
|
|
int current_size;
|
|
} emile_config;
|
|
|
|
enum {
|
|
CONFIG_END,
|
|
CONFIG_GESTALTID,
|
|
CONFIG_VGA,
|
|
CONFIG_MODEM,
|
|
CONFIG_PRINTER,
|
|
CONFIG_PARTITION,
|
|
CONFIG_FIRST_LEVEL,
|
|
CONFIG_SECOND_LEVEL,
|
|
CONFIG_TIMEOUT,
|
|
CONFIG_DEFAULT,
|
|
CONFIG_TITLE,
|
|
CONFIG_KERNEL,
|
|
CONFIG_KERNEL_MAP,
|
|
CONFIG_ARGS,
|
|
CONFIG_INITRD,
|
|
CONFIG_INITRD_MAP,
|
|
CONFIG_CHAINLOADER,
|
|
};
|
|
|
|
extern emile_config* emile_config_open(char* name);
|
|
extern void emile_config_close(emile_config* config);
|
|
|
|
extern int emile_config_read_first_entry(emile_config* config);
|
|
extern int emile_config_read_next(emile_config* config);
|
|
|
|
extern int emile_config_get(emile_config* config, int tag, ...);
|