From 3f20ef3331cd0ee22e510f9f108e6aac0b6f3a79 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Tue, 28 Jul 2020 22:12:26 +0900 Subject: [PATCH] include/corax: Add PID_IO to ipc.h and simplify struct cxmsg definition --- include/corax/ipc.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/include/corax/ipc.h b/include/corax/ipc.h index 964368d..2f0bb3e 100644 --- a/include/corax/ipc.h +++ b/include/corax/ipc.h @@ -34,12 +34,7 @@ struct cxmsg_hdr { struct cxmsg { struct cxmsg_hdr cm_hdr; - - union { - int CM_retval; - struct cxmsg_data_stdio CM_stdio; - u8_t CM_data[CONFIG_IPC_MSGSIZE]; - } CM_dat; + u8_t cm_data[CONFIG_IPC_MSGSIZE]; }; #define cm_src cm_hdr.cxh_src @@ -47,13 +42,11 @@ struct cxmsg { #define cm_len cm_hdr.cxh_len #define cm_type cm_hdr.cxh_type -#define cm_stdio CM_dat.CM_stdio -#define cm_retval CM_dat.CM_retval -#define cm_data CM_dat.CM_data - #define PID_INIT 1 +#define PID_IO 2 #define PID_NET 10 #define PID_STDIO 20 + #if 0 struct cxmsg_hdr { pid_t ch_src; -- 2.47.3