X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb%2Ftest%2Fexternal-transaction.h;fp=ccan%2Ftdb%2Ftest%2Fexternal-transaction.h;h=8f28a624e4ad5298aad3c35144c169c90dfa55f2;hb=15758cca5f15f362edaf9da25f831d10e58b1b9a;hp=0000000000000000000000000000000000000000;hpb=f26355f247709f0150028ec48df7d3f2af463423;p=ccan diff --git a/ccan/tdb/test/external-transaction.h b/ccan/tdb/test/external-transaction.h new file mode 100644 index 00000000..8f28a624 --- /dev/null +++ b/ccan/tdb/test/external-transaction.h @@ -0,0 +1,11 @@ +#ifndef TDB_TEST_EXTERNAL_TRANSACTION_H +#define TDB_TEST_EXTERNAL_TRANSACTION_H +#include + +/* 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 */