Files
rosetta/lib/libmsg/include/rosetta/msg.h

32 lines
536 B
C

#ifndef ROSETTA_MSG_H_
#define ROSETTA_MSG_H_
#define ROSETTA_MSG_MAGIC 0x9AB07D10U
#include <mango/msg.h>
#include <stdint.h>
struct rosetta_msg {
uint32_t msg_magic;
uint32_t msg_protocol;
uint16_t msg_id;
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