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/entity_name.hpp b/entity_name.hpp
index fb04770..d1a9913 100644
--- a/entity_name.hpp
+++ b/entity_name.hpp
@@ -19,6 +19,7 @@
#include <ipmid/api.h>
#include <ipmid/api-types.hpp>
+#include <span>
#include <vector>
namespace google
@@ -33,8 +34,7 @@
// Handle the "entity id:entity instance" to entity name mapping command.
// Sys can query the entity name for a particular "entity id:entity instance".
-Resp getEntityName(const std::vector<std::uint8_t>& data,
- HandlerInterface* handler);
+Resp getEntityName(std::span<const uint8_t> data, HandlerInterface* handler);
} // namespace ipmi
} // namespace google