Interna of mount functionality.  
More...
|  | 
| int | elektraMountOpen (KDB *kdb, KeySet *config, KeySet *modules, Key *errorKey) | 
|  | Creates a trie from a given configuration.  More... 
 | 
|  | 
| int | elektraMountDefault (KDB *kdb, KeySet *modules, int inFallback, Key *errorKey) | 
|  | Reopens the default backend and mounts the default backend if needed.  More... 
 | 
|  | 
| int | elektraMountModules (KDB *kdb, KeySet *modules, Key *errorKey) | 
|  | Mount all module configurations.  More... 
 | 
|  | 
| int | elektraMountVersion (KDB *kdb, Key *errorKey) | 
|  | Mount the version backend.  More... 
 | 
|  | 
| int | elektraMountBackend (KDB *kdb, Backend *backend, Key *errorKey) | 
|  | Mounts a backend into the trie.  More... 
 | 
|  | 
| Key * | elektraMountGetMountpoint (KDB *handle, const Key *where) | 
|  | Lookup a mountpoint in a handle for a specific key.  More... 
 | 
|  | 
| Backend * | elektraMountGetBackend (KDB *handle, const Key *key) | 
|  | Lookup a backend handle for a specific key.  More... 
 | 
|  | 
Interna of mount functionality. 
- Copyright
- BSD License (see doc/COPYING or http://www.libelektra.org) 
      
        
          | int elektraMountBackend | ( | KDB * | kdb, | 
        
          |  |  | Backend * | backend, | 
        
          |  |  | Key * | errorKey | 
        
          |  | ) |  |  | 
      
 
Mounts a backend into the trie. 
- Precondition
- user must pass correctly allocated backend 
- Postcondition
- sets reference counter of backend
- Warning
- in case of init and default backends, the reference counter needs to be modified after calling elektraMountBackend.
- Parameters
- 
  
    | kdb | the handle to work with |  | backend | the backend to mount |  | errorKey | the key used to report warnings |  
 
- Return values
- 
  
  
 
 
      
        
          | int elektraMountDefault | ( | KDB * | kdb, | 
        
          |  |  | KeySet * | modules, | 
        
          |  |  | int | inFallback, | 
        
          |  |  | Key * | errorKey | 
        
          |  | ) |  |  | 
      
 
Reopens the default backend and mounts the default backend if needed. 
- Precondition
- Default Backend is closed. elektraMountOpen was executed before.
- Parameters
- 
  
    | kdb | the handle to work with |  | modules | the current list of loaded modules |  | errorKey | the key used to report warnings |  
 
- Return values
- 
  
  
 
 
      
        
          | Backend* elektraMountGetBackend | ( | KDB * | handle, | 
        
          |  |  | const Key * | key | 
        
          |  | ) |  |  | 
      
 
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.
- Parameters
- 
  
    | handle | is the data structure, where the mounted directories are saved. |  | key | the key, that should be looked up. |  
 
- Returns
- the backend handle associated with the key 
 
 
      
        
          | Key* elektraMountGetMountpoint | ( | KDB * | handle, | 
        
          |  |  | const Key * | where | 
        
          |  | ) |  |  | 
      
 
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.
- Example:
-     1-  Key * key = keyNew ("system/template"); 
 -     2-  KDB * handle = kdbOpen(); 
 -     4-  mountpoint=kdbGetMountpoint(handle, key); 
 -     6-  printf("The backend I am using is %s mounted in %s\n", 
 
- Parameters
- 
  
    | handle | is the data structure, where the mounted directories are saved. |  | where | the key, that should be looked up. |  
 
- Returns
- the mountpoint associated with the key 
 
 
      
        
          | int elektraMountModules | ( | KDB * | kdb, | 
        
          |  |  | KeySet * | modules, | 
        
          |  |  | Key * | errorKey | 
        
          |  | ) |  |  | 
      
 
Mount all module configurations. 
- Parameters
- 
  
    | kdb | the handle to work with |  | modules | the current list of loaded modules |  | errorKey | the key used to report warnings |  
 
- Return values
- 
  
    | -1 | if not rootkey was found |  | 0 | otherwise |  
 
 
 
      
        
          | int elektraMountOpen | ( | KDB * | kdb, | 
        
          |  |  | KeySet * | config, | 
        
          |  |  | KeySet * | modules, | 
        
          |  |  | Key * | errorKey | 
        
          |  | ) |  |  | 
      
 
Creates a trie from a given configuration. 
The config will be deleted within this function.
- Note
- elektraMountDefault is not allowed to be executed before
- Parameters
- 
  
    | 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 |  
 
- Return values
- 
  
  
 
 
      
        
          | int elektraMountVersion | ( | KDB * | kdb, | 
        
          |  |  | Key * | errorKey | 
        
          |  | ) |  |  | 
      
 
Mount the version backend. 
- Parameters
- 
  
    | kdb | the handle to work with |  | errorKey | the key used to report warnings |  
 
- Return values
-