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 <sys/sysmacros.h>
16#include <libconfig.h>
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21int usbg_get_config_node_int(config_setting_t *root,
22 const char *node_name, void *val);
23
24int usbg_get_config_node_bool(config_setting_t *root,
25 const char *node_name, void *val);
26
27int usbg_get_config_node_string(config_setting_t *root,
28 const char *node_name, void *val);
29
30int usbg_get_config_node_ether_addr(config_setting_t *root,
31 const char *node_name, void *val);
32
33int usbg_set_config_node_int(config_setting_t *root,
34 const char *node_name, void *val);
35
36int usbg_set_config_node_int_hex(config_setting_t *root,
37 const char *node_name, void *val);
38
39int usbg_set_config_node_bool(config_setting_t *root,
40 const char *node_name, void *val);
41
42int usbg_set_config_node_string(config_setting_t *root,
43 const char *node_name, void *val);
44
45int usbg_set_config_node_ether_addr(config_setting_t *root,
46 const char *node_name, void *val);
47
48int usbg_set_config_node_dev(config_setting_t *root,
49 const char *node_name, void *val);
50
51#ifdef __cplusplus
52}
53#endif
54
55#endif /* USBG_INTERNAL_LIBCONFIG_H */