table of contents
| backend.c(3elektra) | Elektra | backend.c(3elektra) |
NAME¶
backend.c - Everything related to a backend.
SYNOPSIS¶
#include <kdbassert.h>
#include <kdbinternal.h>
Functions¶
int elektraBackendSetMountpoint (Backend *backend, KeySet
*elektraConfig, Key *errorKey)
sets mountpoint Backend * backendOpen (KeySet *elektraConfig, KeySet
*modules, Key *errorKey)
Builds a backend out of the configuration supplied from: Backend *
backendOpenDefault (KeySet *modules, const char *file, Key *errorKey)
Opens a default backend using the plugin named KDB_RESOLVER and KDB_STORAGE.
Backend * backendOpenModules (KeySet *modules, Key *errorKey)
Backend * backendOpenVersion (Key *errorKey)
Opens the internal version backend. int backendUpdateSize (Backend
*backend, Key *parent, int size)
Update internal size in backend.
Detailed Description¶
Everything related to a backend.
Copyright:
Function Documentation¶
Backend* backendOpen (KeySet * elektraConfig, KeySet * modules, Key * errorKey)¶
Builds a backend out of the configuration supplied from:
system/elektra/mountpoints/<name>
The root key must be like the above example. You do not need to rewind the keyset. But every key must be below the root key.
The internal consistency will be checked in this function. If necessary parts are missing, like no plugins, they cant be loaded or similar 0 will be returned.
ksCut() is perfectly suitable for cutting out the configuration like needed.
Note:
Parameters:
modules used to load new modules or get references to existing one
errorKey the key where an error and warnings are added
Returns:
Return values:
Backend* backendOpenDefault (KeySet * modules, const char * file, Key * errorKey)¶
Opens a default backend using the plugin named KDB_RESOLVER and KDB_STORAGE.
Parameters:
errorKey the key to issue warnings and errors to
Returns:
Backend* backendOpenModules (KeySet * modules, Key * errorKey)¶
Returns:
Parameters:
errorKey the key to issue warnings and errors to
Backend* backendOpenVersion (Key * errorKey)¶
Opens the internal version backend.
Parameters:
Returns:
int backendUpdateSize (Backend * backend, Key * parent, int size)¶
Update internal size in backend.
Parameters:
parent for parent
size to update (-1 default, 0 empty, >0 otherwise)
Precondition:
Return values:
0 on success
int elektraBackendSetMountpoint (Backend * backend, KeySet * elektraConfig, Key * errorKey)¶
sets mountpoint
Parameters:
elektraConfig the config where the mountpoint can be found
errorKey the name also has the mountpoint set
Precondition:
Postcondition:
Return values:
0 on success
Author¶
Generated automatically by Doxygen for Elektra from the source code.
| Mon Jan 15 2018 | Version 0.8.20 |