summaryrefslogtreecommitdiff
path: root/package/lqtapi/src/mps/mps-msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'package/lqtapi/src/mps/mps-msg.c')
-rw-r--r--package/lqtapi/src/mps/mps-msg.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/lqtapi/src/mps/mps-msg.c b/package/lqtapi/src/mps/mps-msg.c
new file mode 100644
index 0000000..7fc0b7a
--- /dev/null
+++ b/package/lqtapi/src/mps/mps-msg.c
@@ -0,0 +1,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));
+}