]> git.ozlabs.org Git - ccan/blob - ccan/tdb/test/external-transaction.h
Neaten tdb to sync with samba version of locking fix.
[ccan] / ccan / tdb / test / external-transaction.h
1 #ifndef TDB_TEST_EXTERNAL_TRANSACTION_H
2 #define TDB_TEST_EXTERNAL_TRANSACTION_H
3 #include <stdbool.h>
4
5 /* Do this before doing any tdb stuff.  Return handle, or -1. */
6 int prepare_external_agent(void);
7
8 /* Ask the external agent to try to do a transaction. */
9 bool external_agent_transaction(int handle, const char *tdbname);
10
11 #endif /* TDB_TEST_EXTERNAL_TRANSACTION_H */