summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1999-12-21 03:04:37 +0000
committerAndrew Tridgell <tridge@samba.org>1999-12-21 03:04:37 +0000
commitc2c42b8694be0b2ce271613153cca71dc8e83a9f (patch)
tree8c068082fa8b9010c61f06c7285f05ffe1a3d8f9 /source3/include
parente004340f715743e16f599bd0be3e9dad4c53bf2d (diff)
downloadsamba-c2c42b8694be0b2ce271613153cca71dc8e83a9f.tar.gz
samba-c2c42b8694be0b2ce271613153cca71dc8e83a9f.tar.bz2
samba-c2c42b8694be0b2ce271613153cca71dc8e83a9f.zip
first pass at the database code for Samba. This also includes a test
suite and a very simple tool for manuipulating the databases. the main code is in tdb/tdb.c and includes both mmap and file based IO. All databases auto-expand and allow multiple simultaneous writers. the next step is using this new capability in lots of places in Samba where we have existing ad-hoc databases (This used to be commit c89d29cc5e3b6d568928acace01144059f1668b3)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/includes.h1
-rw-r--r--source3/include/proto.h11
2 files changed, 12 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 2a10badd73..e8eb8e28ea 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -614,6 +614,7 @@ extern int errno;
#include "ubi_sLinkList.h"
#include "ubi_dLinkList.h"
#include "dlinklist.h"
+#include "../tdb/tdb.h"
#include "interfaces.h"
#ifdef HAVE_FNMATCH
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 25d95323bc..c933a93222 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -2793,6 +2793,17 @@ int smbw_stat_printjob(struct smbw_server *srv,char *path,
int smbw_fstat(int fd, struct stat *st);
int smbw_stat(const char *fname, struct stat *st);
+/*The following definitions come from tdb/tdb.c */
+
+int tdb_update(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf);
+int tdb_exists(TDB_CONTEXT *tdb, TDB_DATA key);
+int tdb_traverse(TDB_CONTEXT *tdb, int (*fn)(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf));
+int tdb_delete(TDB_CONTEXT *tdb, TDB_DATA key);
+int tdb_store(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf, int flag);
+int tdb_close(TDB_CONTEXT *tdb);
+int tdb_writelock(TDB_CONTEXT *tdb);
+int tdb_writeunlock(TDB_CONTEXT *tdb);
+
/*The following definitions come from utils/nbio.c */
void nb_setup(struct cli_state *cli);