Elektra
0.9.1
|
for kdb.h. More...
Functions | |
ssize_t | keySetStringF (Key *key, const char *format,...) |
Set a formatted string. More... | |
KeySet * | elektraKeyGetMetaKeySet (const Key *key) |
Return metadata as keyset. More... | |
Key * | ksPopAtCursor (KeySet *ks, cursor_t pos) |
Pop key at given cursor position. More... | |
for kdb.h.
These methods are a technical preview of what might be added in future Elektra releases. It is a requirement that methods are first added here, before they are added to the public API.
Usually, names in proposal stage should be prefixed with elektra to clearly mark that the signature is likely to be changed and not yet ABI compatible.
KeySet* elektraKeyGetMetaKeySet | ( | const Key * | key | ) |
Return metadata as keyset.
key | the key object to work with |
ssize_t keySetStringF | ( | Key * | key, |
const char * | format, | ||
... | |||
) |
Set a formatted string.
key | the key to set the string value |
format | NULL-terminated text format string |
... | more arguments |
Key* ksPopAtCursor | ( | KeySet * | ks, |
cursor_t | pos | ||
) |
Pop key at given cursor position.
ks | the keyset to pop key from |
c | where to pop |
The internal cursor will be rewinded using ksRewind(). You can use ksGetCursor() and ksSetCursor() jump back to the previous position. e.g. to pop at current position within ksNext() loop:
0 | if ks is 0 |