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 1057 of file kdb.c. References KDB_O_NFOLLOWLINK, KDB_O_SORT, KDB_O_XMLHEADERS, kdbGetChildKeys(), kdbGetKey(), kdbRemove(), kdbSetKeys(), keyClose(), keyGetFullName(), keyInit(), keySetName(), ksAppend(), ksCompare(), ksCurrent(), 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 1206 of file kdb.c. References commandList(), kdbClose(), and kdbOpen(). |
|
Business logic behind the 'kdb get' command. Get a key and return its value to you.
Definition at line 721 of file kdb.c. References kdbGetKey(), keyGetBaseName(), keyGetBaseNameSize(), keyGetBinary(), 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 1158 of file kdb.c. References kdbSetKeys(), keyGetFullName(), ksCurrent(), ksInit(), and ksRewind(). |
|
The business logic behind 'kdb ln' command
Definition at line 537 of file kdb.c. References kdbLink(). |
|
The business logic behind 'kdb ls' command.
Definition at line 594 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 1244 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 400 of file kdb.c. References kdbRemove(). |
|
The business logic behind 'kdb set' command. Sets value to a single key.
Definition at line 437 of file kdb.c. References kdbGetKey(), kdbSetKey(), KEY_TYPE_BINARY, KEY_TYPE_DIR, KEY_TYPE_LINK, KEY_TYPE_STRING, keyGetType(), keyInit(), keySetAccess(), keySetBinary(), keySetComment(), keySetGID(), keySetName(), keySetString(), keySetType(), and keySetUID(). |