1 #ifndef TDB_TEST_EXTERNAL_TRANSACTION_H
2 #define TDB_TEST_EXTERNAL_TRANSACTION_H
7 OPEN_WITH_CLEAR_IF_FIRST,
10 TRANSACTION_KEEP_OPENED,
14 NEEDS_RECOVERY_KEEP_OPENED,
18 /* Do this before doing any tdb stuff. Return handle, or -1. */
19 struct agent *prepare_external_agent(void);
21 /* Ask the external agent to try to do an operation. */
22 int external_agent_operation(struct agent *handle,
27 void external_agent_operation_start(struct agent *agent,
28 enum operation op, const char *tdbname);
30 /* See if they've done it. */
31 bool external_agent_operation_check(struct agent *agent, bool block, int *res);
32 #endif /* TDB_TEST_EXTERNAL_TRANSACTION_H */