Segregate utility methods
This commit segregates utility methods required commonly by both
openpower-read-vpd and ibm-read-vpd from methods only required by
ibm-read-vpd.
All dependency required by utility methods specific to ibm-read-vpd
is not applicable to utility methods required by openpower-read-vpd.
Hence to avoid un-necessary dependency inclusion, this change is
introduced.
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
Change-Id: I95f2be27dc0c391a45beb1654a99506317aaa52b
diff --git a/ibm_vpd_app.cpp b/ibm_vpd_app.cpp
index 7eddeba..c677ba2 100644
--- a/ibm_vpd_app.cpp
+++ b/ibm_vpd_app.cpp
@@ -1,11 +1,12 @@
#include "config.h"
+#include "common_utility.hpp"
#include "defines.hpp"
+#include "ibm_vpd_utils.hpp"
#include "ipz_parser.hpp"
#include "keyword_vpd_parser.hpp"
#include "memory_vpd_parser.hpp"
#include "parser_factory.hpp"
-#include "utils.hpp"
#include "vpd_exceptions.hpp"
#include <assert.h>
@@ -913,7 +914,7 @@
}
// Notify PIM
- inventory::callPIM(move(objects));
+ common::utility::callPIM(move(objects));
}
int main(int argc, char** argv)