summaryrefslogtreecommitdiff
path: root/source3/tdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-12-03 20:39:15 +0000
committerJeremy Allison <jra@samba.org>2001-12-03 20:39:15 +0000
commit15dba42364b6b6286a8ee29cf35c9782910ed56d (patch)
treee5175c008e24e338c0c3445f492ee6b4c51ab2b1 /source3/tdb
parentcdf9b42754b7e97faa7fc4eb1ec69e32c0bfd1a0 (diff)
downloadsamba-15dba42364b6b6286a8ee29cf35c9782910ed56d.tar.gz
samba-15dba42364b6b6286a8ee29cf35c9782910ed56d.tar.bz2
samba-15dba42364b6b6286a8ee29cf35c9782910ed56d.zip
Added prototypes for new fns. Thanks Elrond.
Jeremy. (This used to be commit 2a7bd621b400173d61bb0adab3eded0baeb48d0b)
Diffstat (limited to 'source3/tdb')
-rw-r--r--source3/tdb/tdb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/tdb/tdb.h b/source3/tdb/tdb.h
index 4efe263ee8..9989474a94 100644
--- a/source3/tdb/tdb.h
+++ b/source3/tdb/tdb.h
@@ -102,6 +102,8 @@ typedef int (*tdb_traverse_func)(TDB_CONTEXT *, TDB_DATA, TDB_DATA, void *);
TDB_CONTEXT *tdb_open(char *name, int hash_size, int tdb_flags,
int open_flags, mode_t mode);
+int tdb_reopen(TDB_CONTEXT *tdb);
+int tdb_reopen_all(void);
void tdb_logging_function(TDB_CONTEXT *tdb, void (*fn)(TDB_CONTEXT *, int , const char *, ...));
enum TDB_ERROR tdb_error(TDB_CONTEXT *tdb);
const char *tdb_errorstr(TDB_CONTEXT *tdb);
@@ -121,6 +123,11 @@ void tdb_unlockall(TDB_CONTEXT *tdb);
/* Low level locking functions: use with care */
int tdb_chainlock(TDB_CONTEXT *tdb, TDB_DATA key);
void tdb_chainunlock(TDB_CONTEXT *tdb, TDB_DATA key);
+
+/* Debug functions. Not used in production. */
+void tdb_dump_all(TDB_CONTEXT *tdb);
+void tdb_printfreelist(TDB_CONTEXT *tdb);
+
extern TDB_DATA tdb_null;
#ifdef __cplusplus
}