]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/test/run-traverse.c
tdb2: Make tdb1 use the tdb_file structure.
[ccan] / ccan / tdb2 / test / run-traverse.c
index 13c3d4573d8ab0358d2d2d0f9685271d4c37cf61..4de0ebdef2861a080fdae7d19eff129a1b8c48b0 100644 (file)
@@ -1,11 +1,4 @@
-#include <ccan/tdb2/tdb.c>
-#include <ccan/tdb2/free.c>
-#include <ccan/tdb2/lock.c>
-#include <ccan/tdb2/io.c>
-#include <ccan/tdb2/hash.c>
-#include <ccan/tdb2/check.c>
-#include <ccan/tdb2/traverse.c>
-#include <ccan/tdb2/transaction.c>
+#include "tdb2-source.h"
 #include <ccan/tap/tap.h>
 #include "logging.h"
 
@@ -113,8 +106,8 @@ int main(int argc, char *argv[])
                        TDB_INTERNAL|TDB_CONVERT, TDB_CONVERT, 
                        TDB_NOMMAP|TDB_CONVERT };
        union tdb_attribute hattr = { .hash = { .base = { TDB_ATTRIBUTE_HASH },
-                                               .hash_fn = fixedhash,
-                                               .hash_private = &seed } };
+                                               .fn = fixedhash,
+                                               .data = &seed } };
 
        hattr.base.next = &tap_log_attr;