libusbgx-0.2.0
usbg_internal_libconfig.h
1 /*
2  * This library is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU Lesser General Public
4  * License as published by the Free Software Foundation; either
5  * version 2.1 of the License, or (at your option) any later version.
6  *
7  * This library is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10  * Lesser General Public License for more details.
11  */
12 #ifndef USBG_INTERNAL_LIBCONFIG_H
13 #define USBG_INTERNAL_LIBCONFIG_H
14 
15 #include <libconfig.h>
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 int usbg_get_config_node_int(config_setting_t *root,
21  const char *node_name, void *val);
22 
23 int usbg_get_config_node_bool(config_setting_t *root,
24  const char *node_name, void *val);
25 
26 int usbg_get_config_node_string(config_setting_t *root,
27  const char *node_name, void *val);
28 
29 int usbg_get_config_node_ether_addr(config_setting_t *root,
30  const char *node_name, void *val);
31 
32 int usbg_set_config_node_int(config_setting_t *root,
33  const char *node_name, void *val);
34 
35 int usbg_set_config_node_int_hex(config_setting_t *root,
36  const char *node_name, void *val);
37 
38 int usbg_set_config_node_bool(config_setting_t *root,
39  const char *node_name, void *val);
40 
41 int usbg_set_config_node_string(config_setting_t *root,
42  const char *node_name, void *val);
43 
44 int usbg_set_config_node_ether_addr(config_setting_t *root,
45  const char *node_name, void *val);
46 
47 int usbg_set_config_node_dev(config_setting_t *root,
48  const char *node_name, void *val);
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #endif /* USBG_INTERNAL_LIBCONFIG_H */