summaryrefslogtreecommitdiff
path: root/source3/tdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-04-18 20:41:04 +0000
committerJeremy Allison <jra@samba.org>2000-04-18 20:41:04 +0000
commit4217c939ec6bdb80a3fe953e5b60f6f7b7a43635 (patch)
tree3b24c24f7221c0c84b5482c5fd90292002e881ba /source3/tdb
parent7b1c5392f789ff933e8ab61c9b65b400b7c33ffe (diff)
downloadsamba-4217c939ec6bdb80a3fe953e5b60f6f7b7a43635.tar.gz
samba-4217c939ec6bdb80a3fe953e5b60f6f7b7a43635.tar.bz2
samba-4217c939ec6bdb80a3fe953e5b60f6f7b7a43635.zip
locking/locking.c: Fixed placeholder code for POSIX locking.
printing/printing.c: Cast tdb_delete to (tdb_traverse_func) to stop warning. tmpfile gives mirror warning. smbd/groupname.c: Remember to file_lines_free() on exit. tdb/tdb.h: Add tdb_traverse_func typedef. Jeremy (This used to be commit 204ca1195c86499bd9beb273ce573db7a56ccead)
Diffstat (limited to 'source3/tdb')
-rw-r--r--source3/tdb/tdb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/tdb/tdb.h b/source3/tdb/tdb.h
index b24f08b648..949a843e8a 100644
--- a/source3/tdb/tdb.h
+++ b/source3/tdb/tdb.h
@@ -59,6 +59,8 @@ typedef struct {
enum TDB_ERROR {TDB_SUCCESS=0, TDB_ERR_CORRUPT, TDB_ERR_IO, TDB_ERR_LOCK,
TDB_ERR_OOM, TDB_ERR_EXISTS};
+typedef int (*tdb_traverse_func)(TDB_CONTEXT *, TDB_DATA, TDB_DATA, void *);
+
#if STANDALONE
TDB_CONTEXT *tdb_open(char *name, int hash_size, int tdb_flags,
int open_flags, mode_t mode);