CNDP  22.08.0
jcfg_process.h File Reference
#include <jcfg.h>
#include "cne_common.h"

Go to the source code of this file.


CNDP_API int jcfg_process (jcfg_info_t *jinfo, int flags, jcfg_parse_cb_t *cb, void *cb_arg)

Detailed Description

JSON-C configuration routines

This file provides a standard JSON-C interface routines for CNDP.

Definition in file jcfg_process.h.

Function Documentation

◆ jcfg_process()

CNDP_API int jcfg_process ( jcfg_info_t jinfo,
int  flags,
jcfg_parse_cb_t cb,
void *  cb_arg 

Process the json configuration information and callback user routine.

jinfoThe jcfg_info_t pointer
flagsThe flags used to help parse the JSON-C file
cbThe callback function to be called for each jcfg object type.
cb_argThe argument from the caller passed to the callback function
0 on success or -1 on error
examples/cndpfwd/parse-args.c, examples/cnet-graph/parse-args.c, examples/cnet-quic/parse-args.c, examples/dlb_test/parse-args.c, examples/l3fwd-graph/parse-args.c, and examples/phil/parse-args.c.