summaryrefslogtreecommitdiff
path: root/source3/include/dbwrap.h
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-25 12:54:14 +0100
committerMichael Adam <obnox@samba.org>2008-03-25 15:55:34 +0100
commit32691a702217d3849c60453730387e3dd0f0ca2b (patch)
treefef18bb51427ec5a47875b8c435296cf55dbc9ad /source3/include/dbwrap.h
parentdec89a93229b14563b1c768097271169616eeae2 (diff)
downloadsamba-32691a702217d3849c60453730387e3dd0f0ca2b.tar.gz
samba-32691a702217d3849c60453730387e3dd0f0ca2b.tar.bz2
samba-32691a702217d3849c60453730387e3dd0f0ca2b.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 (This used to be commit edf4dbed27a3c63c04e8110e75cdb76e31627eb6)
Diffstat (limited to 'source3/include/dbwrap.h')
-rw-r--r--source3/include/dbwrap.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/source3/include/dbwrap.h b/source3/include/dbwrap.h
index 5c824750d1..095719a01d 100644
--- a/source3/include/dbwrap.h
+++ b/source3/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);