fru-device: move Adding and updating a property into a helper
Adds updating and adding properties to a helper function
that's divorced from dbus logic. This allows other code
to modify a fru buffer.
Tested:
Called updateproperty on nvl32-obmc. Result was correct
Change-Id: I432f89003cf5608900c018f72edef877534bfe40
Signed-off-by: Marc Olberding <molberding@nvidia.com>
diff --git a/src/fru_device/fru_utils.hpp b/src/fru_device/fru_utils.hpp
index 2b32362..0491b30 100644
--- a/src/fru_device/fru_utils.hpp
+++ b/src/fru_device/fru_utils.hpp
@@ -226,3 +226,7 @@
bool setField(const fruAreas& fruAreaToUpdate, std::vector<uint8_t>& areaData,
const std::string& propertyName, const std::string& value);
+
+bool updateAddProperty(const std::string& propertyValue,
+ const std::string& propertyName,
+ std::vector<uint8_t>& data);