From f2b4acb2fe6a366288b19843e0d2678b8590bdf4 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 25 Apr 2021 13:43:14 +0200 Subject: Chu chuu, using the bus for everything now! Well, I know: bus != train. But I like trains. So I don't care. Go away! --- libs/libgui/msg.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libs/libgui/msg.h') diff --git a/libs/libgui/msg.h b/libs/libgui/msg.h index c25e95e..857042c 100644 --- a/libs/libgui/msg.h +++ b/libs/libgui/msg.h @@ -5,6 +5,7 @@ #include #include +#include #define MSG_PING_SEND 0x07734 #define MSG_PING_RECV 0x7474 @@ -19,8 +20,8 @@ enum message_state { }; struct message_header { + struct bus_header bus; u32 magic; - u32 src; u32 type; enum message_state state; }; @@ -66,7 +67,9 @@ enum message_type { GUI_KEYBOARD, }; -res msg_send(u32 pid, enum message_type type, void *data, u32 size) NONNULL; +res msg_connect_bus(const char *bus, u32 *conn); +res msg_connect_conn(u32 conn); +res msg_send(enum message_type type, void *data, u32 size) NONNULL; res msg_receive(void *buf, u32 size) NONNULL; #endif -- cgit v1.2.3