table of contents
| keyname.c(3elektra) | Elektra | keyname.c(3elektra) |
NAME¶
keyname.c - Methods for Key name manipulation.
SYNOPSIS¶
#include <kdbassert.h>
#include 'kdb.h'
#include 'kdbhelper.h'
#include 'kdbinternal.h'
Functions¶
const char * keyName (const Key *key)
Returns a pointer to the abbreviated real internal key name. "
ssize_t keyGetNameSize (const Key *key)
Bytes needed to store the key name without owner. const void *
keyUnescapedName (const Key *key)
Returns a keyname which is null separated and does not use backslash for
escaping. ssize_t keyGetUnescapedNameSize (const Key *key)
return size of unescaped name with embedded and terminating null characters
ssize_t keyGetName (const Key *key, char *returnedName, size_t
maxSize)
Get abbreviated key name (without owner name). " ssize_t
keySetName (Key *key, const char *newName)
Set a new name to a key. ssize_t keyGetFullNameSize (const Key *key)
Bytes needed to store the key name including user domain and ending NULL.
ssize_t keyGetFullName (const Key *key, char *returnedName, size_t
maxSize)
Get key full name, including the user domain name. const char *
keyBaseName (const Key *key)
Returns a pointer to the internal unescaped key name where the basename
starts. ssize_t keyGetBaseNameSize (const Key *key)
Calculates number of bytes needed to store basename of key. ssize_t
keyGetBaseName (const Key *key, char *returned, size_t maxSize)
Calculate the basename of a key name and put it in returned finalizing the
string with NULL. ssize_t keyAddBaseName (Key *key, const char
*baseName)
Adds baseName (that will be escaped) to the current key name. ssize_t
keyAddName (Key *key, const char *newName)
Add an already escaped name to the keyname. ssize_t keySetBaseName (Key
*key, const char *baseName)
Sets baseName as the new basename for key. elektraNamespace
keyGetNamespace (const Key *key)
For currently valid namespaces see elektraNamespace.
Detailed Description¶
Methods for Key name manipulation.
Copyright:
Author¶
Generated automatically by Doxygen for Elektra from the source code.
| Mon Jan 15 2018 | Version 0.8.20 |