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/machine_name.hpp b/machine_name.hpp
index 4c8a60c..13baadd 100644
--- a/machine_name.hpp
+++ b/machine_name.hpp
@@ -19,7 +19,7 @@
#include <ipmid/api.h>
#include <ipmid/api-types.hpp>
-#include <vector>
+#include <span>
namespace google
{
@@ -32,8 +32,7 @@
} __attribute__((packed));
// Handle the machine name command.
-Resp getMachineName(const std::vector<std::uint8_t>& data,
- HandlerInterface* handler);
+Resp getMachineName(std::span<const uint8_t> data, HandlerInterface* handler);
} // namespace ipmi
} // namespace google