1 #ifndef _RSK_LIBCONFIG_PRIVATE_H
2 #define _RSK_LIBCONFIG_PRIVATE_H
4 #include "libconfig.h"
6 extern lc_err_t lc_errno;
7 extern int lc_errline;
8 extern const char *lc_errfile;
10 int lc_process_var(const char *var, const char *varargs, const char *value, lc_flags_t flags);
12 struct lc_varhandler_st;
14 struct lc_varhandler_st {
15 struct lc_varhandler_st *_next;
16 char *var;
17 char opt;
18 lc_var_type_t type;
19 enum {
20 LC_MODE_CALLBACK,
21 LC_MODE_VAR
22 } mode;
23 int (*callback)();
24 void *data;
25 void *extra;
26 };
28 #endif