Blog
Community
Development
Documentation
CNDP
22.08.0
Toggle main menu visibility
Loading...
Searching...
No Matches
jcfg_decode.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright (c) 2019-2022 Intel Corporation.
3
*/
4
5
#ifndef _JCFG_DECODE_H_
6
#define _JCFG_DECODE_H_
7
12
13
// IWYU pragma: no_include <json-c/json_types.h>
14
15
#include <sys/queue.h>
16
#include <pthread.h>
17
#include <json-c/json_object.h>
18
#include <json-c/json_tokener.h>
19
#include <json-c/json_util.h>
20
#include <json-c/json_visit.h>
21
#include <json-c/linkhash.h>
22
#include <stddef.h>
// for size_t
23
#include <stdint.h>
// for uint64_t
24
25
#include "
jcfg.h
"
// for obj_value_t, jcfg_list_t
26
27
struct
json_object;
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
45
int
jcfg_list_add
(
jcfg_list_t
*lst,
void
*obj);
46
67
int
_decode_defaults
(
struct
json_object *obj,
int
flags,
struct
json_object *parent,
68
const
char
*key,
size_t
*index,
void
*arg);
69
int
_decode_lports(
struct
json_object *obj,
int
flags,
struct
json_object *parent,
const
char
*key,
70
size_t
*index,
void
*arg);
71
int
_decode_umems(
struct
json_object *obj,
int
flags,
struct
json_object *parent,
const
char
*key,
72
size_t
*index,
void
*arg);
73
int
_decode_lgroups(
struct
json_object *obj,
int
flags,
struct
json_object *parent,
const
char
*key,
74
size_t
*index,
void
*arg);
75
int
_decode_threads(
struct
json_object *obj,
int
flags,
struct
json_object *parent,
const
char
*key,
76
size_t
*index,
void
*arg);
77
int
_decode_lport_groups(
struct
json_object *obj,
int
flags,
struct
json_object *parent,
78
const
char
*key,
size_t
*index,
void
*arg);
79
int
_decode_application(
struct
json_object *obj,
int
flags,
struct
json_object *parent,
80
const
char
*key,
size_t
*index,
void
*arg);
81
int
_decode_options(
struct
json_object *obj,
int
flags,
struct
json_object *parent,
const
char
*key,
82
size_t
*index,
void
*arg);
83
96
int
jcfg_decode_lport_groups_end
(
jcfg_info_t
*jinfo,
void
*arg);
97
108
int
__decoder_val_get
(
obj_value_t
*val, uint64_t *v);
109
120
int
__decoder_array_val_get
(
obj_value_t
*val,
obj_value_t
**arr);
121
134
int
__decode_object
(
obj_value_t
*val,
struct
json_object *obj,
enum
json_type type);
135
136
#ifdef __cplusplus
137
}
138
#endif
139
140
#endif
/* _JCFG_DECODE_H_ */
jcfg.h
obj_value_t
struct obj_value obj_value_t
jcfg_info_t
struct jcfg_info_s jcfg_info_t
jcfg_list_t
struct jcfg_list jcfg_list_t
_decode_defaults
int _decode_defaults(struct json_object *obj, int flags, struct json_object *parent, const char *key, size_t *index, void *arg)
__decoder_array_val_get
int __decoder_array_val_get(obj_value_t *val, obj_value_t **arr)
jcfg_decode_lport_groups_end
int jcfg_decode_lport_groups_end(jcfg_info_t *jinfo, void *arg)
__decode_object
int __decode_object(obj_value_t *val, struct json_object *obj, enum json_type type)
jcfg_list_add
int jcfg_list_add(jcfg_list_t *lst, void *obj)
__decoder_val_get
int __decoder_val_get(obj_value_t *val, uint64_t *v)
lib
usr
app
jcfg
jcfg_decode.h
Generated by
1.18.0