summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/include/tdbutil.h
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r10253: a fairly large tdb cleanup and re-organise. Nearly all of this changeAndrew Tridgell1-14/+13
just involves splitting up the core tdb.c code into separate files on logical boundaries, but there are some minor functional changes as well: - move the 'struct tdb_context' into tdb_private.h, hiding it from users. This was done to allow the structure to change without breaking code that uses tdb. - added accessor functions tdb_fd(), tdb_name(), and tdb_log_fn() to access the elements of struct tdb_context that were used by external code but are no longer visible - simplied tdb_append() to use tdb_fetch()/tdb_store(), which is just as good due to the way tdb locks work - changed some of the types (such as tdb_off to tdb_off_t) to make syntax highlighting work better - removed the old optional spinlock code. It was a bad idea. - fixed a bug in tdb_reopen_all() that caused tdbtorture to sometimes fail or report nasty looking errors. This is the only real bug fixed in this commit. Jeremy/Jerry, you might like to pickup this change for Samba3, as that could definately affect smbd in Samba3. The aim of all of these changes is to make the tdb transactions/journaling code I am working on easier to write. I started to write it on top of the existing tdb.c code and it got very messy. Splitting up the code makes it much easier to follow. There are more cleanups we could do in tdb, such as using uint32_t instead of u32 (suggested by metze). I'll leave those for another day. (This used to be commit 4673cdd0d261614e707b72a7a348bb0e7dbb2482)
2007-10-10r9455: Support for reading the policy databaseJelmer Vernooij1-0/+2
(This used to be commit 7548a5012aad41bde0652d4532d184545997be86)
2007-10-10r9448: Work on reading the secrets tdb. Build tdbsam support by default.Jelmer Vernooij1-0/+2
(This used to be commit 9ea601c0a675767f8ea5f316c9355572dffbc4c0)
2007-10-10r5780: Remove unused arguments.Tim Potter1-1/+1
(This used to be commit 1ee84e373e2b44c96f9353f194b766d6a144e7ce)
2007-10-10r5296: - only include the tdb headers where they are neededAndrew Tridgell1-0/+2
- removed the u32 hack in events.c as I think this was only needed as tdb.h defines u32. Metze, can you check that this hack is indeed no longer needed on your suse system? (This used to be commit 6f79432fe656164d4770dbce114a30dda5e7bf9a)
2007-10-10r5143: don't generate prototypes for lib/tdb/Stefan Metzmacher1-1/+9
metze (This used to be commit 1c48c30aaf58d069cdba2f59b5c012bc4bdd3efc)
2007-10-10r848: convert lib/tdb into the same layout as lib/ldbStefan Metzmacher1-0/+37
metze (This used to be commit bacab322ce89979f0ad0811cd15b73d81eceb69d)