Elektra  0.8.15
Functions | Variables
kdbgetenv.h File Reference

Header for the getenv library. More...

#include <kdb.h>
Include dependency graph for kdbgetenv.h:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Header for the getenv library.

Function Documentation

void elektraClose ( )

Closes and frees Repo+Config.

It is safe to call it multiple times.

See also
elektraOpen
void elektraLockMutex ( )

Lock the internally used mutex to access elektraRepo, elektraConfig or elektraParentKey.

See also
elektraUnlockMutex()
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.

Parameters
[out]argcthe number of args to parse, might be reduced
[out]argvthe args, might be reduced
See also
elektraClose
void elektraUnlockMutex ( )

Unlock the internally used mutex.

See also
elektraLockMutex()

Variable Documentation

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