aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_libconfig_internal.h
blob: 3f051547b369604fb72236fd0ab98a729ccdfe32 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* Copyright (c) 2018, Linaro Limited
 * All rights reserved.
 *
 * SPDX-License-Identifier:     BSD-3-Clause
 */

/**
 * @file
 *
 * Common libconfig functions
 */

#ifndef ODP_LIBCONFIG_INTERNAL_H_
#define ODP_LIBCONFIG_INTERNAL_H_

#ifdef __cplusplus
extern "C" {
#endif

int _odp_libconfig_init_global(void);
int _odp_libconfig_term_global(void);

int _odp_libconfig_lookup_int(const char *path, int *value);
int _odp_libconfig_lookup_str(const char *path, char *value,
			      unsigned int str_size);
int _odp_libconfig_lookup_array(const char *path, int value[], int max_num);
int _odp_libconfig_lookup_array_str(const char *path, char **value,
				    int max_count, unsigned int max_str);

int _odp_libconfig_lookup_ext_int(const char *base_path,
				  const char *local_path,
				  const char *name,
				  int *value);

int _odp_libconfig_print(void);

#ifdef __cplusplus
}
#endif

#endif