Elektra 0.8.26
keyvalue.c File Reference

Methods for Key value manipulation. More...

#include "kdbprivate.h"
Include dependency graph for keyvalue.c:

Functions

const void * keyValue (const Key *key)
 Return a pointer to the real internal key value.
const char * keyString (const Key *key)
 Get the c-string representing the value.
ssize_t keyGetValueSize (const Key *key)
 Returns the number of bytes needed to store the key value, including the NULL terminator.
ssize_t keyGetString (const Key *key, char *returnedString, size_t maxSize)
 Get the value of a key as a string.
ssize_t keySetString (Key *key, const char *newStringValue)
 Set the value for key as newStringValue.
ssize_t keyGetBinary (const Key *key, void *returnedBinary, size_t maxSize)
 Get the value of a key as a binary.
ssize_t keySetBinary (Key *key, const void *newBinary, size_t dataSize)
 Set the value of a key as a binary.

Detailed Description

Methods for Key value manipulation.