Functions | |
int | keyIsInitialized (const Key *key) |
Test if key is initialized. | |
int | keyNameGetNamespace (const char *keyName) |
Return the namespace of a key name. | |
int | keyGetNamespace (const Key *key) |
Return the namespace of a key. | |
int | keyIsSystem (const Key *key) |
Check whether a key is under the system namespace or not. | |
int | keyIsUser (const Key *key) |
Check whether a key is under the user namespace or not. | |
int | keyIsLink (const Key *key) |
Check if a key is a link key. | |
int | keyIsDir (const Key *key) |
Check if a key is folder key. | |
int | keyIsBin (const Key *key) |
Check if a key is of some binary type. | |
int | keyIsString (const Key *key) |
Check if a key is of some string type. | |
int | keyNeedsSync (const Key *key) |
Test if the in-memory key object was changed after retrieved from disk. | |
uint32_t | keyCompare (const Key *key1, const Key *key2) |
Compare 2 keys. |
To use them:
#include <kdb.h>
|
Test if This function is more or less reliable. You'd better guarantee your code is robust enough using keyNew(), keyInit(), keyDel() and keyClose() everytime. Definition at line 466 of file key.c. References _Key::flags. |
|
Return the namespace of a key name. Currently valid namespaces are KeyNamespace::KEY_NS_SYSTEM and KeyNamespace::KEY_NS_USER.
Definition at line 894 of file key.c. References keyNameIsSystem(), and keyNameIsUser(). |
|
Return the namespace of a key. Currently valid namespaces are KeyNamespace::KEY_NS_SYSTEM and KeyNamespace::KEY_NS_USER.
Definition at line 912 of file key.c. References _Key::flags. |
|
Check whether a key is under the
Definition at line 950 of file key.c. References _Key::flags. |
|
Check whether a key is under the
Definition at line 986 of file key.c. References _Key::flags. Referenced by keyGetFullRootName(), keyGetFullRootNameSize(), keyToStreamBasename(), ksLookupRE(), and ksToStream(). |
|
Check if a key is a link key. The value of link keys is the key they point to.
Definition at line 1625 of file key.c. References _Key::type. |
|
Check if a key is folder key. Folder keys have no value.
Definition at line 1644 of file key.c. References _Key::type. |
|
Check if a key is of some binary type.
Definition at line 1660 of file key.c. References KEY_TYPE_BINARY, and _Key::type. Referenced by commandGet(). |
|
Check if a key is of some string type.
Definition at line 1675 of file key.c. References _Key::type. |
|
Test if the in-memory All library methods that change Key properties take care of setting a 'key is dirty' internal flag, that is checked by this method.
Definition at line 1753 of file key.c. References _Key::flags. Referenced by kdbSetKeys_default(). |
|
Compare 2 keys.
The returned flags bit array has 1s (differ) or 0s (equal) for each key meta info compared, that can be logically ORed using
Definition at line 2513 of file key.c. References _Key::access, _Key::comment, _Key::data, _Key::dataSize, _Key::flags, _Key::gid, _Key::key, KEY_SWITCH_FLAG, _Key::type, _Key::uid, and _Key::userDomain. Referenced by kdbMonitorKey_default(), and ksCompare(). |