Functions | |
int | commandRemove () |
int | commandSet () |
int | commandLink () |
int | commandList () |
int | commandGet () |
int | commandEdit () |
int | commandImport () |
int | commandExport () |
int | commandMonitor () |
|
Opens an editor to edit an XML representation of the keys. This is one of the most complex commands of the kdb program. Is will
Definition at line 999 of file kdb.c. References KDB_O_NFOLLOWLINK, KDB_O_SORT, KDB_O_XMLHEADERS, kdbGetChildKeys(), kdbGetKey(), kdbRemove(), kdbSetKeys(), keyClose(), keyGetFullName(), keyInit(), keySetName(), ksAppend(), ksCompare(), ksInit(), ksNext(), ksRewind(), and ksToStream(). |
|
Business logic behind the 'kdb export' command. Export a set of keys to an XML format. Usefull to make backups or copy keys to other machine or user. Equivalent to 'kdb ls -xRv base/key/name'
Definition at line 1121 of file kdb.c. References commandList(). |
|
Business logic behind the 'kdb get' command. Get a key and return its value to you.
Definition at line 664 of file kdb.c. References kdbGetKey(), KEY_TYPE_BINARY, keyGetBaseName(), keyGetBaseNameSize(), keyGetComment(), keyGetCommentSize(), keyGetDataSize(), keyGetFullName(), keyGetFullNameSize(), keyGetName(), keyGetNameSize(), keyGetString(), keyGetType(), keyInit(), and keySetName(). |
|
Business logic behind the 'kdb import' command. Import an XML file (or standard input) into the key database. This is usefull to import full programs keys, or restore backups.
Definition at line 1088 of file kdb.c. References kdbSetKeys(), and ksInit(). |
|
The business logic behind 'kdb ln' command
Definition at line 480 of file kdb.c. References kdbLink(). |
|
The business logic behind 'kdb ls' command.
Definition at line 537 of file kdb.c. References KDB_O_DIR, KDB_O_NFOLLOWLINK, KDB_O_STATONLY, KDB_O_XMLHEADERS, kdbGetChildKeys(), kdbGetKey(), kdbGetRootKeys(), kdbStatKey(), keyClose(), keyGetFullName(), keyInit(), keySetName(), keyToStream(), ksAppend(), ksAppendKeys(), ksClose(), ksInit(), ksNext(), ksRewind(), and ksToStream(). Referenced by commandExport(). |
|
Business logic behind 'kdb mon' command. Will block your command line until some change happens to the interested key.
Definition at line 1155 of file kdb.c. References kdbGetKey(), kdbMonitorKey(), KEY_FLAG_HASDATA, keyGetDataSize(), keyGetString(), keyInit(), and keySetName(). |
|
The business logic behind 'kdb rm' command
Definition at line 377 of file kdb.c. References kdbRemove(). |
|
The business logic behind 'kdb set' command. Sets value to a single key.
Definition at line 413 of file kdb.c. References KDB_RET_NOTFOUND, kdbGetKey(), kdbSetKey(), KEY_TYPE_BINARY, KEY_TYPE_DIR, KEY_TYPE_LINK, KEY_TYPE_STRING, KEY_TYPE_UNDEFINED, keyGetType(), keyInit(), keySetAccess(), keySetBinary(), keySetComment(), keySetGID(), keySetName(), keySetString(), keySetType(), and keySetUID(). |