X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Fexternal-agent.h;h=27316dde22ded3ec856cac317db4f045c3ef5836;hb=919937354a331bb964564a11b5a5b80403ff8db9;hp=ad537d5d91635777e9ed279068922bf2dd43c51d;hpb=5e8b9af5e7fe5f1ccac407873a3b782b8a629782;p=ccan diff --git a/ccan/tdb2/test/external-agent.h b/ccan/tdb2/test/external-agent.h index ad537d5d..27316dde 100644 --- a/ccan/tdb2/test/external-agent.h +++ b/ccan/tdb2/test/external-agent.h @@ -5,12 +5,14 @@ * various times. */ enum operation { OPEN, + OPEN_WITH_HOOK, FETCH, STORE, TRANSACTION_START, TRANSACTION_COMMIT, NEEDS_RECOVERY, CHECK, + SEND_SIGNAL, CLOSE, }; @@ -37,4 +39,5 @@ enum agent_return external_agent_operation(struct agent *handle, const char *agent_return_name(enum agent_return ret); const char *operation_name(enum operation op); +void free_external_agent(struct agent *agent); #endif /* TDB2_TEST_EXTERNAL_AGENT_H */