oem ibm: infrastructure for oem handlers
1. This commit adds the framework for an oem handler
which can be used by specific oem use-cases
for implementing various commands.
2. This commit adds implementation for getStateSensorReadings
and setStateEffecterStates commands for oem state sets.
3. Also adds implementation for inband code update.
Change-Id: Ib38a66ee381dd06b93f6a9313d51de1c23e6ee65
Signed-off-by: Sampa Misra <sampmisr@in.ibm.com>
diff --git a/common/types.hpp b/common/types.hpp
index c2b3510..254c37a 100644
--- a/common/types.hpp
+++ b/common/types.hpp
@@ -34,6 +34,7 @@
using EntityType = uint16_t;
using EntityInstance = uint16_t;
using ContainerID = uint16_t;
+using StateSetId = uint16_t;
using CompositeCount = uint8_t;
using SensorOffset = uint8_t;
using EventState = uint8_t;
diff --git a/common/utils.hpp b/common/utils.hpp
index 7478aab..664169d 100644
--- a/common/utils.hpp
+++ b/common/utils.hpp
@@ -4,6 +4,8 @@
#include "libpldm/bios.h"
#include "libpldm/platform.h"
+#include "types.hpp"
+
#include <stdint.h>
#include <systemd/sd-bus.h>
#include <unistd.h>
@@ -136,6 +138,10 @@
uint64_t, double, std::string>;
using DbusProp = std::string;
using DbusChangedProps = std::map<DbusProp, PropertyValue>;
+using DBusInterfaceAdded = std::vector<
+ std::pair<pldm::dbus::Interface,
+ std::vector<std::pair<pldm::dbus::Property,
+ std::variant<pldm::dbus::Property>>>>>;
/**
* @brief The interface for DBusHandler