]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/test/external-transaction.h
Neaten tdb to sync with samba version of locking fix.
[ccan] / ccan / tdb / test / external-transaction.h
diff --git a/ccan/tdb/test/external-transaction.h b/ccan/tdb/test/external-transaction.h
new file mode 100644 (file)
index 0000000..8f28a62
--- /dev/null
@@ -0,0 +1,11 @@
+#ifndef TDB_TEST_EXTERNAL_TRANSACTION_H
+#define TDB_TEST_EXTERNAL_TRANSACTION_H
+#include <stdbool.h>
+
+/* Do this before doing any tdb stuff.  Return handle, or -1. */
+int prepare_external_agent(void);
+
+/* Ask the external agent to try to do a transaction. */
+bool external_agent_transaction(int handle, const char *tdbname);
+
+#endif /* TDB_TEST_EXTERNAL_TRANSACTION_H */