Add occ-dbus object
- The intent behind this commit is to add APIs for dynamically
createing D-Bus objects.
- When temperature values such as DIMM or Core are monitored, D-Bus
objects need to be dynamically created and the corresponding
attribute values updated. If the object path exists, only the
attribute value needs to be updated.
- Currently supports Sensor and OperationalStatus interfaces.
- Also, added Unit Test to occ_dbus file.
Tested: built openpower-occ-control successfully and UTest pass.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I1eac918d6a7a04d6b72b4e68fff868b04dde9c28
diff --git a/Makefile.am b/Makefile.am
index f3863dd..407815a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,6 +25,7 @@
occ_errors.cpp \
occ_presence.cpp \
occ_command.cpp \
+ occ_dbus.cpp \
powercap.cpp \
org/open_power/OCC/Device/error.cpp \
i2c_occ.cpp \