squash getStat variations into one underlying method
Squash the getStat(name) and getStat(session) into one underlying
method.
Change-Id: I6c00b9f4128a64e3d1a918c8a9d1eaf252de32bc
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/src/ipmiblob/blob_handler.hpp b/src/ipmiblob/blob_handler.hpp
index a663b63..bc3ebdc 100644
--- a/src/ipmiblob/blob_handler.hpp
+++ b/src/ipmiblob/blob_handler.hpp
@@ -107,6 +107,17 @@
std::uint32_t offset,
const std::vector<std::uint8_t>& bytes);
+ /**
+ * Generic stat reader.
+ *
+ * @param[in] command - the command associated with this write.
+ * @param[in] request - the bytes of the request
+ * @return the metadata StatResponse
+ * @throws BlobException on failure.
+ */
+ StatResponse statGeneric(BlobOEMCommands command,
+ const std::vector<std::uint8_t>& request);
+
IpmiInterface* ipmi;
};