aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-headerparser/test_headers/th_a.h
diff options
context:
space:
mode:
authorZubin Mithra <zsm@google.com>2017-08-23 14:01:57 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-08-25 17:23:52 +0200
commitc3631fc789181c23aa51396f0ff66cd488e4b4f7 (patch)
tree7ffbc3082b6f8cac56de418bd51ee54d98eb3df7 /tools/syz-headerparser/test_headers/th_a.h
parent3f1aca4826c84d52da6047a8a5c9325727525c8d (diff)
tools: add headerparser as a tool to assist in writing system call descriptions
The tool can be found inside tools/syz-headerparser. Details on how to use headerparser can be found inside docs/headerparser_usage.md.
Diffstat (limited to 'tools/syz-headerparser/test_headers/th_a.h')
-rw-r--r--tools/syz-headerparser/test_headers/th_a.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/syz-headerparser/test_headers/th_a.h b/tools/syz-headerparser/test_headers/th_a.h
new file mode 100644
index 000000000..f2afc8752
--- /dev/null
+++ b/tools/syz-headerparser/test_headers/th_a.h
@@ -0,0 +1,22 @@
+// Copyright 2017 syzkaller project authors. All rights reserved.
+// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+
+#ifndef __TEST_HEADER_A
+#define __TEST_HEADER_A
+
+#define RANDOM_MACRO_1 1
+#define RANDOM_MACRO_2 2
+
+struct A {
+ struct B *B_item;
+ const char *char_ptr;
+ unsigned int an_unsigned_int;
+ /*
+ * Some comments
+ */
+ bool a_bool;
+ bool another_bool;
+ some_type var;
+};
+
+#endif /* __TEST_HEADER_A */