]> git.corax.cc Git - corax/commitdiff
include/corax: Add PID_IO to ipc.h and simplify struct cxmsg definition
authorMatthias Kruk <m@m10k.eu>
Tue, 28 Jul 2020 13:12:26 +0000 (22:12 +0900)
committerMatthias Kruk <m@m10k.eu>
Tue, 28 Jul 2020 13:12:26 +0000 (22:12 +0900)
include/corax/ipc.h

index 964368d804aa679e920f54f1cabeef3f2a76a5fb..2f0bb3e9d38913ef3e3ecc8037461d547b1c17f1 100644 (file)
@@ -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;