EMILE/tools/emile_config.h
2007-10-08 12:05:52 +00:00

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, ...);