]> git.corax.cc Git - corax/commitdiff
Add some more refined definitions for ipc messages to corax/ipc.h (but don't use...
authorMatthias Kruk <m@m10k.eu>
Fri, 31 Jan 2020 11:28:30 +0000 (20:28 +0900)
committerMatthias Kruk <m@m10k.eu>
Fri, 31 Jan 2020 11:28:30 +0000 (20:28 +0900)
include/corax/ipc.h

index 8d9d423c07956f3e937e8a1fbbdbc9384a95cc31..964368d804aa679e920f54f1cabeef3f2a76a5fb 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __CORAX_IPC_H
 #define __CORAX_IPC_H
 
+#include <config.h>
 #include <corax/types.h>
 
 #define CX_MSG_RETVAL 0
 #define CX_FCNTL  4
 #define CX_IOCTL  5
 
+struct cxmsg_io {
+       int cio_fd;
+};
+
 struct cxmsg_data_stdio {
        int  sio_fd;
        char sio_data[];
@@ -49,5 +54,35 @@ struct cxmsg {
 #define PID_INIT  1
 #define PID_NET   10
 #define PID_STDIO 20
+#if 0
+struct cxmsg_hdr {
+       pid_t ch_src;
+       pid_t ch_dst;
+       u32_t ch_type;
+};
+
+struct cxmsg_data_read {
+       int    cdr_fd;
+       size_t cdr_size;
+};
+
+struct cxmsg_data_retval {
+       int    cdr_retval;
+       size_t cdr_size;
+       u8_t   cdr_data[];
+};
 
+struct cxmsg_data_write {
+       int    cdw_fd;
+       size_t cdw_size;
+       u8_t   cdw_data[];
+};
+
+struct cxmsg {
+       struct cxmsg_hdr cm_hdr;
+       union {
+
+       } CM_data;
+};
+#endif
 #endif /* __CORAX_IPC_H */