summaryrefslogtreecommitdiffstats
path: root/src/ipmiblob/ipmi_interface.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipmiblob/ipmi_interface.hpp')
-rw-r--r--src/ipmiblob/ipmi_interface.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/ipmiblob/ipmi_interface.hpp b/src/ipmiblob/ipmi_interface.hpp
new file mode 100644
index 0000000..6bad7db
--- /dev/null
+++ b/src/ipmiblob/ipmi_interface.hpp
@@ -0,0 +1,25 @@
+#pragma once
+
+#include <cstdint>
+#include <vector>
+
+namespace host_tool
+{
+
+class IpmiInterface
+{
+ public:
+ virtual ~IpmiInterface() = default;
+
+ /**
+ * Send an IPMI packet to the BMC.
+ *
+ * @param[in] data - a vector of the IPMI packet contents.
+ * @return the bytes returned.
+ * @throws IpmiException on failure.
+ */
+ virtual std::vector<std::uint8_t>
+ sendPacket(std::vector<std::uint8_t>& data) = 0;
+};
+
+} // namespace host_tool
OpenPOWER on IntegriCloud