libusbgx-0.2.0
Loading...
Searching...
No Matches
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
17extern "C" {
18#endif
19
20int usbg_get_config_node_int(config_setting_t *root,
21 const char *node_name, void *val);
22
23int usbg_get_config_node_bool(config_setting_t *root,
24 const char *node_name, void *val);
25
26int usbg_get_config_node_string(config_setting_t *root,
27 const char *node_name, void *val);
28
29int usbg_get_config_node_ether_addr(config_setting_t *root,
30 const char *node_name, void *val);
31
32int usbg_set_config_node_int(config_setting_t *root,
33 const char *node_name, void *val);
34
35int usbg_set_config_node_int_hex(config_setting_t *root,
36 const char *node_name, void *val);
37
38int usbg_set_config_node_bool(config_setting_t *root,
39 const char *node_name, void *val);
40
41int usbg_set_config_node_string(config_setting_t *root,
42 const char *node_name, void *val);
43
44int usbg_set_config_node_ether_addr(config_setting_t *root,
45 const char *node_name, void *val);
46
47int 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 */