Elektra
0.8.17
|
Header for the getenv library. More...
#include <kdb.h>
Functions | |
void | elektraLockMutex () |
Lock the internally used mutex to access elektraRepo, elektraConfig or elektraParentKey. More... | |
void | elektraUnlockMutex () |
Unlock the internally used mutex. More... | |
void | elektraOpen (int *argc, char **argv) |
Initializes Global Elektra Repo+Config. More... | |
void | elektraClose () |
Closes and frees Repo+Config. More... | |
Variables | |
KDB * | elektraRepo |
The KDB repository to be used to fetch configuration. | |
KeySet * | elektraConfig |
The config of the application. More... | |
Key * | elektraParentKey |
The parentKey used to access elektraRepo. More... | |
Header for the getenv library.
void elektraClose | ( | ) |
void elektraLockMutex | ( | ) |
Lock the internally used mutex to access elektraRepo, elektraConfig or elektraParentKey.
void elektraOpen | ( | int * | argc, |
char ** | argv | ||
) |
Initializes Global Elektra Repo+Config.
It is safe to call it multiple times. Will automatically close using elektraClose(), if it was open.
[out] | argc | the number of args to parse, might be reduced |
[out] | argv | the args, might be reduced |
void elektraUnlockMutex | ( | ) |
Unlock the internally used mutex.
KeySet* elektraConfig |
The config of the application.
Contains whole /env configuration.
Key* elektraParentKey |
The parentKey used to access elektraRepo.
Contains all warnings and errors that happened during repo access