diff options
author | Michael Adam <obnox@samba.org> | 2011-08-17 08:45:09 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-10-11 14:17:55 +0200 |
commit | 6608ba850b45e2f47cd1c2c4b1ad676150a1deea (patch) | |
tree | c6ab6169225bb33d3bf465a71a992ce5295eeec5 /source3/lib | |
parent | 2d52f6f8f5ea579fbbfff2d42a4ba9ed897a60ff (diff) | |
download | samba-6608ba850b45e2f47cd1c2c4b1ad676150a1deea.tar.gz samba-6608ba850b45e2f47cd1c2c4b1ad676150a1deea.tar.bz2 samba-6608ba850b45e2f47cd1c2c4b1ad676150a1deea.zip |
s3:dbwrap: reorganize dbwrap.h some
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/dbwrap/dbwrap.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/source3/lib/dbwrap/dbwrap.h b/source3/lib/dbwrap/dbwrap.h index dbefe7bfd6..bceba6c2d4 100644 --- a/source3/lib/dbwrap/dbwrap.h +++ b/source3/lib/dbwrap/dbwrap.h @@ -56,20 +56,26 @@ struct db_context { bool persistent; }; +/* The following definitions come from lib/dbwrap.c */ NTSTATUS dbwrap_delete(struct db_context *db, TDB_DATA key); NTSTATUS dbwrap_store(struct db_context *db, TDB_DATA key, TDB_DATA data, int flags); TDB_DATA dbwrap_fetch(struct db_context *db, TALLOC_CTX *mem_ctx, TDB_DATA key); +NTSTATUS dbwrap_traverse(struct db_context *db, + int (*f)(struct db_record*, void*), + void *private_data); + + +/* The following definitions come from lib/dbwrap_util.c */ + 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); TDB_DATA dbwrap_fetch_bystring(struct db_context *db, TALLOC_CTX *mem_ctx, const char *key); -/* The following definitions come from lib/dbwrap_util.c */ - int32_t dbwrap_fetch_int32(struct db_context *db, const char *keystr); int dbwrap_store_int32(struct db_context *db, const char *keystr, int32_t v); bool dbwrap_fetch_uint32(struct db_context *db, const char *keystr, @@ -103,9 +109,6 @@ NTSTATUS dbwrap_trans_do(struct db_context *db, NTSTATUS dbwrap_trans_traverse(struct db_context *db, int (*f)(struct db_record*, void*), void *private_data); -NTSTATUS dbwrap_traverse(struct db_context *db, - int (*f)(struct db_record*, void*), - void *private_data); NTSTATUS dbwrap_delete_bystring_upper(struct db_context *db, const char *key); NTSTATUS dbwrap_store_bystring_upper(struct db_context *db, const char *key, |