2005-09-15 09:58:31 -04:00
|
|
|
#ifndef EL__CONFIG_CONF_H
|
|
|
|
#define EL__CONFIG_CONF_H
|
|
|
|
|
|
|
|
#include "terminal/terminal.h"
|
|
|
|
#include "util/string.h"
|
|
|
|
|
|
|
|
enum parse_error {
|
|
|
|
ERROR_NONE,
|
|
|
|
ERROR_COMMAND,
|
|
|
|
ERROR_PARSE,
|
|
|
|
ERROR_OPTION,
|
|
|
|
ERROR_VALUE,
|
|
|
|
ERROR_NOMEM,
|
|
|
|
};
|
|
|
|
|
|
|
|
void load_config(void);
|
2008-02-02 17:20:07 -05:00
|
|
|
#ifdef CONFIG_EXMODE
|
|
|
|
enum parse_error parse_config_exmode_command(unsigned char *cmd);
|
|
|
|
#endif
|
2005-09-15 09:58:31 -04:00
|
|
|
void parse_config_file(struct option *options, unsigned char *name,
|
|
|
|
unsigned char *file, struct string *mirror,
|
|
|
|
int is_system_conf);
|
|
|
|
int write_config(struct terminal *);
|
|
|
|
|
|
|
|
unsigned char *
|
2007-08-29 09:43:15 -04:00
|
|
|
create_config_string(unsigned char *prefix, unsigned char *name);
|
2005-09-15 09:58:31 -04:00
|
|
|
|
2009-03-08 07:28:13 -04:00
|
|
|
struct string *wrap_option_desc(struct string *out, const unsigned char *src,
|
|
|
|
const struct string *indent, int maxwidth);
|
|
|
|
|
2005-09-15 09:58:31 -04:00
|
|
|
#endif
|