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/host_power_off.hpp b/host_power_off.hpp
index 49231a3..0cbe9c2 100644
--- a/host_power_off.hpp
+++ b/host_power_off.hpp
@@ -19,6 +19,7 @@
#include <ipmid/api.h>
#include <ipmid/api-types.hpp>
+#include <span>
#include <vector>
namespace google
@@ -33,7 +34,7 @@
} __attribute__((packed));
// Disable the fallback watchdog with given time delay and Power Off Host
-Resp hostPowerOff(const std::vector<std::uint8_t>& data,
+Resp hostPowerOff(std::span<const uint8_t> data,
const HandlerInterface* handler);
} // namespace ipmi