summaryrefslogtreecommitdiff
path: root/lib9p/include
diff options
context:
space:
mode:
Diffstat (limited to 'lib9p/include')
-rw-r--r--lib9p/include/lib9p/9p.generated.h (renamed from lib9p/include/lib9p/_types.h)9
-rw-r--r--lib9p/include/lib9p/9p.h2
2 files changed, 5 insertions, 6 deletions
diff --git a/lib9p/include/lib9p/_types.h b/lib9p/include/lib9p/9p.generated.h
index 576d481..c6aaee9 100644
--- a/lib9p/include/lib9p/_types.h
+++ b/lib9p/include/lib9p/9p.generated.h
@@ -1,7 +1,8 @@
-/* Generated by `./lib9p/types.gen lib9p/9P2000.txt lib9p/9P2000.u.txt lib9p/9P2000.e.txt`. DO NOT EDIT! */
+/* Generated by `./lib9p/9p.gen lib9p/9P2000.txt lib9p/9P2000.u.txt lib9p/9P2000.e.txt`. DO NOT EDIT! */
-#ifndef _LIB9P__TYPES_H_
-#define _LIB9P__TYPES_H_
+#ifndef _LIB9P_9P_H_
+# error Do not include <lib9p/9p.generated.h> directly; include <lib9p/9p.h> instead
+#endif
#include <stdint.h> /* for uint{n}_t types */
@@ -309,5 +310,3 @@ struct lib9p_msg_Tswrite {
struct lib9p_msg_Rswrite {
uint32_t count;
};
-
-#endif /* _LIB9P__TYPES_H_ */
diff --git a/lib9p/include/lib9p/9p.h b/lib9p/include/lib9p/9p.h
index 2712998..8e57a86 100644
--- a/lib9p/include/lib9p/9p.h
+++ b/lib9p/include/lib9p/9p.h
@@ -10,8 +10,8 @@
#include <stdbool.h>
#include <sys/types.h> /* for ssize_t */
+#include <lib9p/9p.generated.h>
#include <lib9p/linux-errno.h>
-#include <lib9p/_types.h>
#define LIB9P_NOTAG ((uint16_t)~0U)
#define LIB9P_NOFID ((uint32_t)~0U)