aboutsummaryrefslogtreecommitdiffstats
path: root/include/proto.h
diff options
context:
space:
mode:
authorYan <yanxk.fnst@fujitsu.com>2024-02-19 18:37:18 +0800
committerYan <yanxk.fnst@fujitsu.com>2024-02-19 18:37:18 +0800
commit6944827ad2c1936cbf424014da72f680d415f4c1 (patch)
tree0d08eb1dbb68da631c9424db1bc30a0bd0c42590 /include/proto.h
parent3071c5d2454d4667fa29f6f072a358a733860575 (diff)
monitor demo: provide header files
provide uart api based on termios provide demo IPC protocol provide makefile that would generate a static lib Change-Id: I1d454d90cde7a5d829af3f410320e1e6412e0359 Signed-off-by: Yan <yanxk.fnst@fujitsu.com>
Diffstat (limited to 'include/proto.h')
-rw-r--r--include/proto.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/proto.h b/include/proto.h
new file mode 100644
index 0000000..a9307f0
--- /dev/null
+++ b/include/proto.h
@@ -0,0 +1,28 @@
+/*
+ * File Name: proto.h
+ * Description: demo communication protocal
+ */
+
+#ifndef __DEMO_PROTOCOL__
+#define __DEMO_PROTOCOL__
+
+/* demo message queue struct */
+typedef struct demo_mq_struct {
+ long mtype;
+ _Bool tswitch;
+} MQ_STRUCT;
+
+/* demo shared memory struct */
+typedef struct zigbee_th_struct {
+ unsigned short tempNow;
+ unsigned short humiNow;
+} SHM_STRUCT;
+
+/* resources child threads need */
+typedef struct thread_resource_struct {
+ int rw_fd;
+ int shm_id;
+ int mq_id;
+} ARG_STRUCT;
+
+#endif