util: util_ntdb.c
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 22 Jun 2012 00:14:41 +0000 (09:44 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 22 Jun 2012 05:35:17 +0000 (07:35 +0200)
commit735290f474a34986be4c66eb0bdf0b0ba14da970
tree40df3d0abda9f8053e7b0160caa631bffde67db8
parent7c1d9fb3c12d20779afe8293b6a867bd2061077f
util: util_ntdb.c

The first function is ntdb_new: this is preferred over ntdb_open, as
it makes the ntdb_context returned (and all NTDB_DATA returned from
ntdb_fetch) valid talloc pointers.

The API is very similar to tdb_wrap_open().

Note that we handle $TDB_NO_FSYNC here, since ntdb doesn't do that
hack (and it's great for speeding up testing!).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/util/util_ntdb.c [new file with mode: 0644]
lib/util/util_ntdb.h [new file with mode: 0644]
lib/util/wscript_build