aboutsummaryrefslogtreecommitdiff
path: root/seccomp_bpf_tests.h
diff options
context:
space:
mode:
Diffstat (limited to 'seccomp_bpf_tests.h')
-rw-r--r--seccomp_bpf_tests.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/seccomp_bpf_tests.h b/seccomp_bpf_tests.h
index a46be51..1de226e 100644
--- a/seccomp_bpf_tests.h
+++ b/seccomp_bpf_tests.h
@@ -20,9 +20,16 @@
* for use by CTS.
*/
-#include "linux/test_harness.h"
-
-// Forward declare from seccomp_bpf_tests.c.
+#ifdef __cplusplus
extern "C" {
-struct __test_metadata* get_seccomp_test_list();
+#endif
+
+/**
+ * Runs a Seccomp kernel test named |name|. Returns 1 if the test passed
+ * and 0 if the test failed.
+ */
+int run_seccomp_test(const char* name);
+
+#ifdef __cplusplus
}
+#endif