From f8a0bb99bb6879124f153a161339bbfdef2049bf Mon Sep 17 00:00:00 2001 From: Alistair Popple Date: Thu, 13 Nov 2014 17:16:03 +1100 Subject: ipmi/bt: Enable adding messages to the start of the queue By default new ipmi messages are added to the end of the transmission queue. However sometimes it is necessary to add messages to the start of the queue. This patch adds a new ipmi function that adds messages to the start of the transmission queue. Signed-off-by: Alistair Popple Signed-off-by: Stewart Smith --- core/ipmi.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core') diff --git a/core/ipmi.c b/core/ipmi.c index 32f1f4d..14c35f3 100644 --- a/core/ipmi.c +++ b/core/ipmi.c @@ -64,6 +64,11 @@ struct ipmi_msg *ipmi_mkmsg(int interface, uint32_t code, return msg; } +int ipmi_queue_msg_head(struct ipmi_msg *msg) +{ + return msg->backend->queue_msg_head(msg); +} + int ipmi_queue_msg(struct ipmi_msg *msg) { /* Here we could choose which interface to use if we want to support -- cgit v1.1