Razorback Configuration API. More...
#include <razorback/visibility.h>
#include <razorback/types.h>
#include <libconfig.h>
Go to the source code of this file.
Data Structures | |
struct | RZBConfCallBack |
Configuration callbacks. More... | |
struct | ConfArray |
struct | RZBConfKey_t |
Configuration file entry definition. More... | |
struct | ConfList |
Typedefs | |
typedef long | conf_int_t |
Enumerations | |
enum | RZB_CONF_KEY_TYPE_t { RZB_CONF_KEY_TYPE_STRING = 5, RZB_CONF_KEY_TYPE_INT, RZB_CONF_KEY_TYPE_PARSED_STRING, RZB_CONF_KEY_TYPE_UUID, RZB_CONF_KEY_TYPE_BOOL, RZB_CONF_KEY_TYPE_ARRAY, RZB_CONF_KEY_TYPE_LIST, RZB_CONF_KEY_TYPE_END } |
Avaliable types to read from the config file. More... | |
Functions | |
SO_PUBLIC bool | readMyConfig (const char *configDir, const char *configFile, RZBConfKey_t *config) |
Read a component configuration file. | |
SO_PUBLIC void | rzbConfCleanUp (void) |
Clean the memory allocated by readApiConfig and readMyConfig. |
Razorback Configuration API.
enum RZB_CONF_KEY_TYPE_t |
Avaliable types to read from the config file.
SO_PUBLIC bool readMyConfig | ( | const char * | configDir, | |
const char * | configFile, | |||
RZBConfKey_t * | config | |||
) |
Read a component configuration file.
*configDir | the dir to look in | |
*configFile | the file read | |
*config | the structure of the file. |
SO_PUBLIC void rzbConfCleanUp | ( | void | ) |
Clean the memory allocated by readApiConfig and readMyConfig.