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