Elektra  0.9.7
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 a pointer to 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)
 Copy the string value of a Key into returnedString. 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)
 Copy the binary value of a Key into returnedBinary. More...
 
ssize_t keySetBinary (Key *key, const void *newBinary, size_t dataSize)
 Set the value of a Key to the binary value newBinary. More...
 

Detailed Description

Methods for Key value manipulation.