Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
Functions
cfg_file.h File Reference

Configuration file parsing. More...

#include <hicn/facemgr/cfg.h>
Include dependency graph for cfg_file.h:

Go to the source code of this file.

Functions

int probe_cfgfile (char *f)
 Probe for the configuration file location. More...
 
int parse_config_file (const char *cfgpath, facemgr_cfg_t *cfg)
 Parses the provided configuration file into the facemgr configuration data structure. More...
 

Detailed Description

Configuration file parsing.

Function Documentation

◆ parse_config_file()

int parse_config_file ( const char *  cfgpath,
facemgr_cfg_t *  cfg 
)

Parses the provided configuration file into the facemgr configuration data structure.

Parameters
[in]cfgpath- Path to the configuration file
[out]cfg- Pre-allocated configuration data structure
Returns
0 in case of success, -1 otherwise.

◆ probe_cfgfile()

int probe_cfgfile ( char *  f)

Probe for the configuration file location.

Parameters
[in]f- File name
Returns
0 in case of success, -1 otherwise.