summaryrefslogtreecommitdiffstats
path: root/lib/util/util_tdb.h
Commit message (Collapse)AuthorAgeFilesLines
* lib/util_tdb: factor out tdb_data_talloc_copy()Gregor Beck2013-02-191-0/+1
| | | | | | Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* util_tdb: move timeout chainlock variants from source3/lib/util/util_tdb.cRusty Russell2012-06-221-0/+18
| | | | | | | We're about to use them for dbwrap. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/util: Move map_nt_error_from_tdb to the top levelAndrew Bartlett2012-04-181-0/+6
| | | | | | This will help with making dbwrap available as a top level library. Andrew Bartlett
* lib/util: factor out tdb_data_is_emptyGregor Beck2011-12-031-0/+1
| | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Sat Dec 3 05:20:30 CET 2011 on sn-devel-104
* tdb_compat: Higher level API fixes.Rusty Russell2011-06-201-2/+2
| | | | | | | | | | | | My previous patches fixed up all direct TDB callers, but there are a few utility functions and the db_context functions which are still using the old -1 / 0 return codes. It's clearer to fix up all the callers of these too, so everywhere is consistent: non-zero means an error. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_store: check returns for 0, not -1.Rusty Russell2011-06-201-5/+5
| | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for != 0 instead of == -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_delete: check returns for 0, not -1.Rusty Russell2011-06-201-1/+1
| | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for != 0 instead of == -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/util/util_tdb.h: fix licence/copyrightGünther Deschner2011-06-101-0/+21
| | | | Guenther
* lib/util Move source3 tdb_wrap_open() into the common code.Andrew Bartlett2011-05-061-1/+0
| | | | | | | | | This #if _SAMBA_BUILD == 3 is very unfortunate, as it means that in the top level build, these options are not available for these databases. However, having two different tdb_wrap lists is a worse fate, so this will do for now. Andrew Bartlett
* Spelling fixes for libutilBrad Hards2010-02-221-2/+2
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* s3: Add tdb_data_equalVolker Lendecke2010-02-121-0/+1
|
* Make util_tdb.h static since it is now used by Samba3.Jelmer Vernooij2008-10-121-0/+114