google-ipmi-sys: Convert input to use std::span<const uint8_t>
Change-Id: I533de34c04e3d2577cb9076add441153b2994c30
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/pcie_i2c.hpp b/pcie_i2c.hpp
index 5f1cd35..63d4df8 100644
--- a/pcie_i2c.hpp
+++ b/pcie_i2c.hpp
@@ -19,7 +19,7 @@
#include <ipmid/api.h>
#include <ipmid/api-types.hpp>
-#include <vector>
+#include <span>
namespace google
{
@@ -39,12 +39,11 @@
// Handle the pcie slot count command.
// Sys can query the number of pcie slots.
-Resp pcieSlotCount(const std::vector<std::uint8_t>& data,
- HandlerInterface* handler);
+Resp pcieSlotCount(std::span<const uint8_t> data, HandlerInterface* handler);
// Handle the pcie slot to i2c bus mapping command.
// Sys can query which i2c bus is routed to which pcie slot.
-Resp pcieSlotI2cBusMapping(const std::vector<std::uint8_t>& data,
+Resp pcieSlotI2cBusMapping(std::span<const uint8_t> data,
HandlerInterface* handler);
} // namespace ipmi