tdb: enforce hashing, via example hash in old rwlocks entry in header.
[ccan] / ccan / tdb / test / external-transaction.h
index 843b697917522f13690352cbe03798fb253a273e..c0197b194a6bb04f8ee4df0182482e331faf6d4c 100644 (file)
@@ -6,15 +6,22 @@ enum operation {
        OPEN,
        OPEN_WITH_CLEAR_IF_FIRST,
        TRANSACTION,
+       KEEP_OPENED,
+       TRANSACTION_KEEP_OPENED,
+       FETCH_KEEP_OPENED,
+       STORE_KEEP_OPENED,
+       CHECK_KEEP_OPENED,
+       NEEDS_RECOVERY_KEEP_OPENED,
+       CLOSE,
 };
 
 /* Do this before doing any tdb stuff.  Return handle, or -1. */
 struct agent *prepare_external_agent(void);
 
 /* Ask the external agent to try to do an operation. */
-bool external_agent_operation(struct agent *handle,
-                             enum operation op,
-                             const char *tdbname);
+int external_agent_operation(struct agent *handle,
+                            enum operation op,
+                            const char *tdbname);
 
 /* Ask... */
 void external_agent_operation_start(struct agent *agent,