aboutsummaryrefslogtreecommitdiffstats
path: root/package/lqtapi/src/mps/mps-msg.c
blob: 7fc0b7a992fc4520d3b3e223321c7ea338a806b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
int mps_message_send(struct mps_fifo *fifo, struct mps_message *msg)
{
}

int mps_message_recv(struct mps_fifo *fifo, struct mps_message *msg)
{
	mps_fifo_out(fifo, &msg->header, sizeof(msg->header));
	mps_fifo_out(fifo, &msg->data, mps_message_size(msg));
}

struct mps_message *msg mps_message_recv_alloc(struct mps_fifo *fifo)
{
	struct mps_message *msg;

	mps_fifo_out(fifo, &msg->header, sizeof(msg->header));
	mps_fifo_out(fifo, &msg->data, mps_message_size(msg));
}