aboutsummaryrefslogtreecommitdiff
path: root/tests.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests.h')
-rw-r--r--tests.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests.h b/tests.h
index 96b8357..339d565 100644
--- a/tests.h
+++ b/tests.h
@@ -1,8 +1,15 @@
#ifndef TESTS_H_
#define TESTS_H_
-unsigned int run_tests(
- void (*on_fail)(const char * const, const uint8_t *, const uint8_t *)
+#include <stdint.h>
+
+typedef void (*test_fail_cb_t)(
+ const int,
+ const char * const,
+ const uint8_t *,
+ const uint8_t *
);
+unsigned int run_tests(test_fail_cb_t);
+
#endif /* TESTS_H_ */