Elektra
0.8.18
|
The private trie structure. More...
Backend * | elektraTrieLookup (Trie *trie, const Key *key) |
Internal Datastructure for mountpoints. More... | |
int | elektraTrieClose (Trie *trie, Key *errorKey) |
Closes the trie and all opened backends within. More... | |
The private trie structure.
A trie is a data structure which can handle the longest prefix matching very fast. This is exactly what needs to be done when using kdbGet() and kdbSet() in a hierarchy where backends are mounted - you need the backend mounted closest to the parentKey.
int elektraTrieClose | ( | Trie * | trie, |
Key * | errorKey | ||
) |
Closes the trie and all opened backends within.
trie | the trie to close |
errorKey | the key used to report warnings |
0 | on success |
Backend* elektraTrieLookup | ( | Trie * | trie, |
const Key * | key | ||
) |
Internal Datastructure for mountpoints.
Lookups a backend inside the trie.
trie | the trie object to work with |
key | the name of this key will be looked up |