Robust Distributed System Nucleus (rDSN)  ver 1.0.0
Functions
Configuration Service

Overview

Functions

DSN_API const char * dsn_config_get_value_string (const char *section, const char *key, const char *default_value, const char *dsptr)
 
DSN_API bool dsn_config_get_value_bool (const char *section, const char *key, bool default_value, const char *dsptr)
 
DSN_API uint64_t dsn_config_get_value_uint64 (const char *section, const char *key, uint64_t default_value, const char *dsptr)
 
DSN_API double dsn_config_get_value_double (const char *section, const char *key, double default_value, const char *dsptr)
 
DSN_API int dsn_config_get_all_sections (const char **buffers, int *buffer_count)
 
DSN_API int dsn_config_get_all_keys (const char *section, const char **buffers, int *buffer_count)
 
DSN_API void dsn_config_dump (const char *file)
 

Function Documentation

DSN_API const char* dsn_config_get_value_string ( const char *  section,
const char *  key,
const char *  default_value,
const char *  dsptr 
)
Parameters
section[section]
keykey = value
default_valueif [section] key is not present
dsptrwhat it is for, as help-info in config