Interna of trie functionality.
More...
|
| Backend * | trieLookup (Trie *trie, const Key *key) |
| | The Trie structure.
|
| int | trieClose (Trie *trie, Key *errorKey) |
| | Closes the trie and all opened backends within.
|
| Trie * | trieInsert (Trie *trie, const char *name, Backend *value) |
| | Insert into trie.
|
Interna of trie functionality.
- Copyright
- BSD License (see LICENSE.md or https://www.libelektra.org)
◆ trieClose()
| int trieClose |
( |
Trie * | trie, |
|
|
Key * | errorKey ) |
Closes the trie and all opened backends within.
- Parameters
-
| trie | the trie to close |
| errorKey | the key used to report warnings |
- Return values
-
◆ trieInsert()
| Trie * trieInsert |
( |
Trie * | trie, |
|
|
const char * | name, |
|
|
Backend * | value ) |
Insert into trie.
- Parameters
-
| trie | the trie to insert to (0 to create a new trie) |
| name | the key's name to insert |
| value | the value to insert |
- Return values
-
◆ trieLookup()
| Backend * trieLookup |
( |
Trie * | trie, |
|
|
const Key * | key ) |
The Trie structure.
Lookups a backend inside the trie.
- Returns
- the backend if found
-
0 otherwise
- Parameters
-
| trie | the trie object to work with |
| Key | the name of this key will be looked up |