[PATCH phosphor-host-ipmid] Create ipmi_context header

OpenBMC Patches openbmc-patches at stwcx.xyz
Sat Nov 14 05:40:22 AEDT 2015


From: Chris Austen <austenc at us.ibm.com>

---
 ipmid-api.h | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/ipmid-api.h b/ipmid-api.h
index b3117d5..5971d96 100644
--- a/ipmid-api.h
+++ b/ipmid-api.h
@@ -1,6 +1,7 @@
 #ifndef __HOST_IPMID_IPMI_COMMON_H__
 #define __HOST_IPMID_IPMI_COMMON_H__
 #include <stdlib.h>
+#include <systemd/sd-bus.h>
 
 // length of Completion Code and its ALWAYS _1_
 #define IPMI_CC_LEN 1
@@ -32,7 +33,13 @@ typedef void*           ipmi_response_t;
 // fill in whatever needed that will be of help during the actual handling of
 // command. IPMID will just pass the netfn, cmd and also this data to plugins
 // during the command handler invocation.
-typedef void*           ipmi_context_t;
+struct _ipmi_context_t {
+    void   *user;
+    sd_bus *bus;
+    unsigned long  flags;
+};
+
+typedef _ipmi_context_t *ipmi_context_t;
 
 // Length of request / response buffer depending on whether the data is a
 // request or a response from a plugin handler.
-- 
2.6.3




More information about the openbmc mailing list