solaris-fixes branch: Applied the swap-patch by Christophe Kalt.
[collectd.git] / src / libconfig / libconfig_private.h
1 #ifndef _RSK_LIBCONFIG_PRIVATE_H
2 #define _RSK_LIBCONFIG_PRIVATE_H
3
4 #include "libconfig.h"
5
6 extern lc_err_t lc_errno;
7 extern int lc_errline;
8 extern const char *lc_errfile;
9
10 int lc_process_var(const char *var, const char *varargs, const char *value, lc_flags_t flags);
11
12 struct lc_varhandler_st;
13
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 };
27
28 #endif