lib: msg: implement generic messave init and receive
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user