summaryrefslogtreecommitdiffstats
path: root/source/tdb/tdbutil.c
Commit message (Collapse)AuthorAgeFilesLines
* Added John Reilly's enumports/addprinter/delprinter scripting code plus theJeremy Allison2000-07-311-0/+14
| | | | | | | | | | fix for the Win9x printer drivers. Changed command names to add "command" string on the end for some consistancy with the other scripting commands. Added '%P' option to tdbpack/unpack to store long comment string. Made port name be "Samba Printer Port" if no enum port script given. Fixed prs_uint32_pre code to cope with null args. Jeremy.
* Moved tdb functions that access parse structs into parse_prs.cJeremy Allison2000-06-081-30/+0
| | | | | to prevent builkd breaking. Jeremy.
* Fixing get/set of security descriptors.Jeremy Allison2000-06-071-8/+4
| | | | | | Removed ugly hack for NT printing. Fixed up tdb parse stuff memory leaks. Jeremy.
* added some debug code to track down pack/unpack problemsAndrew Tridgell2000-06-041-0/+12
|
* getting and setting security descriptors on printers now worksAndrew Tridgell2000-05-271-10/+42
| | | | this needed some fixes in tdb_unpack(). Tim, you'll need to update
* added tdb_pack() and tdb_unpack()Andrew Tridgell2000-05-241-0/+148
|
* While we're all making incompatible tdb changes, I changed the implementationTim Potter2000-05-121-4/+4
| | | | | | | | | of tdb_{store,get}_int() to store the length of the string key + 1 so the stored key contains the trailing NULL character. This allows normal string library routines to manipulate keys. Also renamed tdb_get_int() to tdb_fetch_int() to keep the set of verbs consistent.
* Added tdb_store_by_string() and tdb_fetch_by_string() functions to storeTim Potter2000-05-091-0/+27
| | | | data with null terminated string keys.
* put tdb utility functions in a separate fileAndrew Tridgell2000-04-291-0/+67