diff options
author | Andrew Tridgell <tridge@samba.org> | 1999-12-21 03:04:37 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1999-12-21 03:04:37 +0000 |
commit | c2c42b8694be0b2ce271613153cca71dc8e83a9f (patch) | |
tree | 8c068082fa8b9010c61f06c7285f05ffe1a3d8f9 /source3/include/proto.h | |
parent | e004340f715743e16f599bd0be3e9dad4c53bf2d (diff) | |
download | samba-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/proto.h')
-rw-r--r-- | source3/include/proto.h | 11 |
1 files changed, 11 insertions, 0 deletions
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); |