Functions | |
| int | elektraMountOpen (KDB *kdb, KeySet *config, KeySet *modules, Key *errorKey) |
| int | elektraMountDefault (KDB *kdb, KeySet *modules, Key *errorKey) |
| int | elektraMountModules (KDB *kdb, KeySet *modules, Key *errorKey) |
| int | elektraMountVersion (KDB *kdb, Key *errorKey) |
| int | elektraMountBackend (KDB *kdb, Backend *backend, Key *errorKey) |
| Key * | elektraMountGetMountpoint (KDB *handle, const Key *where) |
| Backend * | elektraMountGetBackend (KDB *handle, const Key *key) |
Mounts a backend into the trie.
| kdb | the handle to work with | |
| backend | the backend to mount | |
| errorKey | the key used to report warnings |
Reopens the default backend and mounts the default backend if needed.
| kdb | the handle to work with | |
| modules | the current list of loaded modules | |
| errorKey | the key used to report warnings |
Lookup a backend handle for a specific key.
The required canonical name is ensured by using a key as parameter, which will transform the key to canonical representation.
Will return handle when no more specific KDB could be found.
If key is 0 or invalid the default backend will be returned.
| handle | is the data structure, where the mounted directories are saved. | |
| key | the key, that should be looked up. |
Lookup a mountpoint in a handle for a specific key.
Will return a key representing the mountpoint or null if there is no appropriate mountpoint e.g. its the root mountpoint.
| handle | is the data structure, where the mounted directories are saved. | |
| where | the key, that should be looked up. |
Mount all module configurations.
| kdb | the handle to work with | |
| modules | the current list of loaded modules | |
| errorKey | the key used to report warnings |
| -1 | if not rootkey was found | |
| 0 | otherwise |
Creates a trie from a given configuration.
The config will be deleted within this function.
| kdb | the handle to work with | |
| modules | the current list of loaded modules | |
| config | the configuration which should be used to build up the trie. | |
| errorKey | the key used to report warnings |
1.7.1