diff options
author | Michael Adam <obnox@samba.org> | 2008-03-25 12:54:14 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-03-25 15:55:34 +0100 |
commit | edf4dbed27a3c63c04e8110e75cdb76e31627eb6 (patch) | |
tree | b61bb4e4fdaffebe18cc52d3b8015444a99f9b06 /source/include/dbwrap.h | |
parent | c967b62dd3c924419fa4a72aa2143d6bef959d18 (diff) | |
download | samba-edf4dbed27a3c63c04e8110e75cdb76e31627eb6.tar.gz samba-edf4dbed27a3c63c04e8110e75cdb76e31627eb6.tar.xz samba-edf4dbed27a3c63c04e8110e75cdb76e31627eb6.zip |
build: don't autogenerate prototypes for util_tdb and dbwrap anymore.
Stick to hand-written headers (that are there anyways).
Add some missing prototypes to util_tdb.h and dbwrap.h.
I did not bother to add a header for each single dbwrap backend
open function but put the prototypes for the open functions into
the central dbwrap.h.
Michael
Diffstat (limited to 'source/include/dbwrap.h')
-rw-r--r-- | source/include/dbwrap.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/include/dbwrap.h b/source/include/dbwrap.h index 5c824750d10..095719a01d3 100644 --- a/source/include/dbwrap.h +++ b/source/include/dbwrap.h @@ -54,6 +54,27 @@ struct db_context *db_open(TALLOC_CTX *mem_ctx, int hash_size, int tdb_flags, int open_flags, mode_t mode); +struct db_context *db_open_rbt(TALLOC_CTX *mem_ctx); + +struct db_context *db_open_tdb(TALLOC_CTX *mem_ctx, + const char *name, + int hash_size, int tdb_flags, + int open_flags, mode_t mode); + +#ifdef CLUSTER_SUPPORT +struct db_context *db_open_ctdb(TALLOC_CTX *mem_ctx, + const char *name, + int hash_size, int tdb_flags, + int open_flags, mode_t mode); +#endif + +struct db_context *db_open_file(TALLOC_CTX *mem_ctx, + struct messaging_context *msg_ctx, + const char *name, + int hash_size, int tdb_flags, + int open_flags, mode_t mode); + + NTSTATUS dbwrap_delete_bystring(struct db_context *db, const char *key); NTSTATUS dbwrap_store_bystring(struct db_context *db, const char *key, TDB_DATA data, int flags); |