]> git.ozlabs.org Git - ccan/blobdiff - ccan/ntdb/test/helprun-external-agent.h
ntdb: fix up tests.
[ccan] / ccan / ntdb / test / helprun-external-agent.h
diff --git a/ccan/ntdb/test/helprun-external-agent.h b/ccan/ntdb/test/helprun-external-agent.h
new file mode 100644 (file)
index 0000000..1261041
--- /dev/null
@@ -0,0 +1,7 @@
+#include "external-agent.h"
+#include "../private.h"
+
+enum agent_return external_agent_needs_rec(struct ntdb_context *ntdb)
+{
+       return ntdb_needs_recovery(ntdb) ? SUCCESS : FAILED;
+}