blob: d43bcfd293738f8f13c177ab0a7162ce1ecfc32f [file] [log] [blame]
Matt Spinlere0017eb2018-03-27 11:17:38 -05001#pragma once
2
Matt Spinler4a6ea6a2018-03-27 14:25:12 -05003#include <com/ibm/Logging/Policy/server.hpp>
Matt Spinler23818bb2018-05-23 11:00:15 -05004#include <xyz/openbmc_project/Common/ObjectPath/server.hpp>
5#include <xyz/openbmc_project/Inventory/Decorator/Asset/server.hpp>
Matt Spinler4a6ea6a2018-03-27 14:25:12 -05006
Matt Spinlere0017eb2018-03-27 11:17:38 -05007namespace ibm
8{
9namespace logging
10{
11
Matt Spinler4a6ea6a2018-03-27 14:25:12 -050012template <typename... T>
Patrick Williams8123a712022-07-22 19:26:53 -050013using ServerObject = typename sdbusplus::server::object_t<T...>;
Matt Spinler4a6ea6a2018-03-27 14:25:12 -050014
Matt Spinler23818bb2018-05-23 11:00:15 -050015using ObjectPathInterface =
16 sdbusplus::xyz::openbmc_project::Common::server::ObjectPath;
17
18using CalloutInterface =
19 sdbusplus::xyz::openbmc_project::Inventory::Decorator::server::Asset;
20using CalloutObject = ServerObject<CalloutInterface, ObjectPathInterface>;
21
Matt Spinler4a6ea6a2018-03-27 14:25:12 -050022using PolicyInterface = sdbusplus::com::ibm::Logging::server::Policy;
23using PolicyObject = ServerObject<PolicyInterface>;
24
Matt Spinlere0017eb2018-03-27 11:17:38 -050025enum class InterfaceType
26{
Matt Spinler23818bb2018-05-23 11:00:15 -050027 CALLOUT,
Matt Spinler9bea4ea2018-05-09 15:53:04 -050028 POLICY
Matt Spinlere0017eb2018-03-27 11:17:38 -050029};
Matt Spinler66e07072018-09-12 10:36:14 -050030} // namespace logging
31} // namespace ibm