Elektra  0.8.18
Functions
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. More...
 
const char * keyString (const Key *key)
 Get the c-string representing the value. More...
 
ssize_t keyGetValueSize (const Key *key)
 Returns the number of bytes needed to store the key value, including the NULL terminator. More...
 
ssize_t keyGetString (const Key *key, char *returnedString, size_t maxSize)
 Get the value of a key as a string. More...
 
ssize_t keySetString (Key *key, const char *newStringValue)
 Set the value for key as newStringValue. More...
 
ssize_t keyGetBinary (const Key *key, void *returnedBinary, size_t maxSize)
 Get the value of a key as a binary. More...
 
ssize_t keySetBinary (Key *key, const void *newBinary, size_t dataSize)
 Set the value of a key as a binary. More...
 

Detailed Description

Methods for Key value manipulation.