Add Callout class
This class will be used to put a hardware callout object
on D-Bus that shows the serial number and part number information
for what is being called out in an error log.
It will remain even after that part is replaced with a new part with
a new SN, so the data needs to be persisted as opposed to being
looked up in the inventory on startup. The persisting will be
done in a future commit. Note it will also survive an error log
being resolved, which would delete the inventory assocation interface
on the error log.
The object path of the callout objects will look something like
/xyz/openbmc_project/logging/entry/5/callouts/0, where this would be
the first callout on error log 5.
Tested: N/A - not used yet
Change-Id: I7e2f0c61705880ad70d5f6a49209f73a499785b9
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/interfaces.hpp b/interfaces.hpp
index 0dfa668..6c7651f 100644
--- a/interfaces.hpp
+++ b/interfaces.hpp
@@ -1,6 +1,8 @@
#pragma once
#include <com/ibm/Logging/Policy/server.hpp>
+#include <xyz/openbmc_project/Common/ObjectPath/server.hpp>
+#include <xyz/openbmc_project/Inventory/Decorator/Asset/server.hpp>
namespace ibm
{
@@ -10,11 +12,19 @@
template <typename... T>
using ServerObject = typename sdbusplus::server::object::object<T...>;
+using ObjectPathInterface =
+ sdbusplus::xyz::openbmc_project::Common::server::ObjectPath;
+
+using CalloutInterface =
+ sdbusplus::xyz::openbmc_project::Inventory::Decorator::server::Asset;
+using CalloutObject = ServerObject<CalloutInterface, ObjectPathInterface>;
+
using PolicyInterface = sdbusplus::com::ibm::Logging::server::Policy;
using PolicyObject = ServerObject<PolicyInterface>;
enum class InterfaceType
{
+ CALLOUT,
POLICY
};
}