RBC_Test_CommServer 0.1.0 build fe9835b
Non-vital customer-network access point in front of the RBC's role-C gateways
Loading...
Searching...
No Matches
cs_config.c File Reference

See cs_config.h. More...

#include "cs_config.h"
#include <stdio.h>
#include <string.h>
#include "safecomm/ale/ale.h"
#include "safecomm/config/config.h"

Go to the source code of this file.

Functions

int load_cfg (const char *path, cs_cfg_t *cfg)
 Loads path into cfg, defaults first then overridden by whatever the file actually sets (out-of-range values are logged to stderr and the default kept - see cs_config.c's own cfg_u32()).

Detailed Description

See cs_config.h.

Definition in file cs_config.c.

Function Documentation

◆ load_cfg()

int load_cfg ( const char * path,
cs_cfg_t * cfg )

Loads path into cfg, defaults first then overridden by whatever the file actually sets (out-of-range values are logged to stderr and the default kept - see cs_config.c's own cfg_u32()).

Returns
0 on success, -1 if the file itself could not be loaded (safecomm_config_load() failure) - cfg is still fully defaulted in that case, never left uninitialized.

Definition at line 42 of file cs_config.c.