1 # ifndef _RSK_LIBCONFIG_H
2 # define _RSK_LIBCONFIG_H
7 # define LC_VAR_LIST 0x80
29 LC_VAR_SIZE_LONG_LONG,
38 LC_VAR_BOOL_BY_EXISTANCE,
52 LC_FLAGS_SECTIONSTART,
67 int lc_process(int argc, char **argv, const char *appname, lc_conf_type_t type, const char *extra);
68 int lc_register_callback(const char *var, char opt, lc_var_type_t type, int (*callback)(const char *, const char *, const char *, const char *, lc_flags_t, void *), void *extra);
69 int lc_register_var(const char *var, lc_var_type_t type, void *data, char opt);
70 lc_err_t lc_geterrno(void);
71 char *lc_geterrstr(void);
72 int lc_process_file(const char *appname, const char *pathname, lc_conf_type_t type);
73 void lc_cleanup(void);
75 # define LC_CBRET_IGNORESECTION (255)
76 # define LC_CBRET_OKAY (0)
77 # define LC_CBRET_ERROR (-1)