aboutsummaryrefslogtreecommitdiff
path: root/inc/spec.h
diff options
context:
space:
mode:
authorMarvin Borner2024-01-17 00:59:12 +0100
committerMarvin Borner2024-01-17 01:10:36 +0100
commitb754e71ca502a5027ea3479eb3ea1a0ac28e5282 (patch)
treea7d4d9e45f289c6ba08abe56931f8b2f6dea39af /inc/spec.h
Initial commit
Diffstat (limited to 'inc/spec.h')
-rw-r--r--inc/spec.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/inc/spec.h b/inc/spec.h
new file mode 100644
index 0000000..3d8300c
--- /dev/null
+++ b/inc/spec.h
@@ -0,0 +1,20 @@
+// Copyright (c) 2023, Marvin Borner <dev@marvinborner.de>
+// SPDX-License-Identifier: MIT
+
+#ifndef BLOC_SPEC_H
+#define BLOC_SPEC_H
+
+#define BLOC_IDENTIFIER "BLoC"
+#define BLOC_IDENTIFIER_LENGTH 4
+
+struct bloc_header {
+ char identifier[BLOC_IDENTIFIER_LENGTH];
+ short length;
+ void *entries;
+} __attribute__((packed));
+
+struct bloc_entry {
+ void *expression;
+} __attribute__((packed));
+
+#endif