summaryrefslogtreecommitdiff
path: root/c/sources/common.h
diff options
context:
space:
mode:
authordweller <dweller@cabin.digital>2024-03-09 00:55:36 +0200
committerdweller <dweller@cabin.digital>2024-03-09 00:55:36 +0200
commit86d3f93ee338b28ab7d40aa83c129cf6b97ef4b7 (patch)
tree507a8d66932e6dea9b121dfcbf980f7925575c9f /c/sources/common.h
Initial commit, 2 years later
Diffstat (limited to '')
-rw-r--r--c/sources/common.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/c/sources/common.h b/c/sources/common.h
new file mode 100644
index 0000000..bc3ae30
--- /dev/null
+++ b/c/sources/common.h
@@ -0,0 +1,27 @@
+#pragma once
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <assert.h>
+#include <string.h>
+
+
+#define EZIPC_TEST_PATH "/tmp/ezi_conn_test"
+
+
+typedef enum msg_type_e
+{
+ MSG_TEXT,
+ MSG_OK,
+ MSG_EXIT,
+
+} msg_type;
+
+
+typedef struct msg_s
+{
+ msg_type type;
+ uint8_t data[128];
+
+} msg;