summaryrefslogtreecommitdiff
path: root/lib/tdb2/test/external-agent.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-02-22 15:03:37 +1030
committerAmitay Isaacs <amitay@gmail.com>2012-03-07 13:16:16 +1100
commit9d897b0951e73a4717ae133d5b6b2493334fbf22 (patch)
treec3fcbe7b449f1384da2d132110ebfbfedce8fd3b /lib/tdb2/test/external-agent.h
parent361f3ea9ee577c5a3e2fed687a0b417b257c31de (diff)
downloadsamba-9d897b0951e73a4717ae133d5b6b2493334fbf22.tar.gz
samba-9d897b0951e73a4717ae133d5b6b2493334fbf22.tar.bz2
samba-9d897b0951e73a4717ae133d5b6b2493334fbf22.zip
lib/tdb2: adapt unit tests to SAMBA environment.
This means changing headers, implementing a simple tap-like wrapper, and also splitting out the helpers into those which are linked with the api* tests (which can't use non-public tdb2 functions) and those linked with the run* tests (which can). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/tdb2/test/external-agent.h')
-rw-r--r--lib/tdb2/test/external-agent.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/tdb2/test/external-agent.h b/lib/tdb2/test/external-agent.h
index cf9789b669..c4cd2b148d 100644
--- a/lib/tdb2/test/external-agent.h
+++ b/lib/tdb2/test/external-agent.h
@@ -36,11 +36,16 @@ enum agent_return external_agent_operation(struct agent *handle,
const char *name);
/* Hook into free() on tdb_data in external agent. */
-void (*external_agent_free)(void *);
+extern void (*external_agent_free)(void *);
/* Mapping enum -> string. */
const char *agent_return_name(enum agent_return ret);
const char *operation_name(enum operation op);
void free_external_agent(struct agent *agent);
+
+/* Internal use: */
+struct tdb_context;
+enum agent_return external_agent_needs_rec(struct tdb_context *tdb);
+
#endif /* TDB2_TEST_EXTERNAL_AGENT_H */