FruDevice: Move verifyOffset to util
Moving verifyOffset module to fruUtils.cpp
Signed-off-by: Vijay Khemka <vijaykhemkalinux@gmail.com>
Change-Id: I8d8450783d421c1db384ca1332fa5aee90a41ced
diff --git a/include/FruUtils.hpp b/include/FruUtils.hpp
index 4417ece..5e96696 100644
--- a/include/FruUtils.hpp
+++ b/include/FruUtils.hpp
@@ -69,3 +69,16 @@
/// \param area - the area
/// \return the field offset
unsigned int getHeaderAreaFieldOffset(fruAreas area);
+
+/// \brief Get name of FRU areas
+/// \param area - the area
+/// \return the name of Fru areas
+std::string getFruAreaName(fruAreas area);
+
+/// \brief verifies overlapping of other offsets against given offset area
+/// \param fruBytes Start of Fru data
+/// \param currentArea Index of current area offset to be compared
+/// \param len Length of current area space
+/// \return true on success
+bool verifyOffset(const std::vector<uint8_t>& fruBytes, fruAreas currentArea,
+ uint8_t len);