lib: msg: implement generic messave init and receive

This commit is contained in:
2026-02-23 21:56:16 +00:00
parent 02d4f43151
commit d32988c56c
3 changed files with 48 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
#define ROSETTA_MSG_MAGIC 0x9AB07D10U
#include <mango/msg.h>
#include <stdint.h>
struct rosetta_msg {
@@ -12,4 +13,19 @@ struct rosetta_msg {
uint16_t msg_reserved;
};
struct rosetta_msg_string {
char *s_buf;
size_t s_len;
size_t s_max;
};
extern void rosetta_msg_init(
struct rosetta_msg *msg,
uint32_t protocol_id,
uint16_t msg_id);
extern kern_status_t rosetta_msg_recv(
kern_handle_t channel,
msgid_t *out_id,
struct rosetta_msg *out_msg);
#endif