#ifndef MAILBOXES_H #define MAILBOXES_H #include typedef struct { void* msg; uint32_t from; uint32_t to; uint32_t size; } Message; typedef struct { uint32_t rd; uint32_t wr; uint16_t size; Message* msg_store; } Mailbox; uint32_t mailbox_new(uint16_t size); void mailbox_send_msg(Message* msg); void mailbox_get_msg(uint32_t box, Message* recv_msg, uint32_t buffer_sz); #endif