@@ -4,14 +4,10 @@ extern "C" { !endif __BLANK_LINE__ -!define LC_VAR_LIST 0x80 - -__BLANK_LINE__ - typedef enum { LC_CONF_SECTION, LC_CONF_APACHE, LC_CONF_COLON, LC_CONF_EQUAL, @@ -47,10 +43,11 @@ LC_VAR_IP, LC_VAR_IP4, LC_VAR_IP6, LC_VAR_HOSTNAME4, LC_VAR_HOSTNAME6, + LC_VAR_LIST = 0x80 } lc_var_type_t; __BLANK_LINE__ typedef enum { @@ -81,10 +78,11 @@ int lc_register_var(const char *var, lc_var_type_t type, void *data, char opt); lc_err_t lc_geterrno(void); void lc_seterrstr(const char *usererrstr); char *lc_geterrstr(void); int lc_process_file(const char *appname, const char *pathname, lc_conf_type_t type); +int lc_handle_type(lc_var_type_t type, const char *value, void *data); void lc_cleanup(void); __BLANK_LINE__ !define LC_CBRET_IGNORESECTION (255)