blob: e5e82936b5fbda482315b9771d8310cb76be4ca5 [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 Spinler433bead2018-04-23 11:08:03 -05004#include <xyz/openbmc_project/Object/Delete/server.hpp>
Matt Spinler2cfceb42018-04-23 11:13:04 -05005#include <xyz/openbmc_project/Collection/DeleteAll/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>
13using ServerObject = typename sdbusplus::server::object::object<T...>;
14
Matt Spinler433bead2018-04-23 11:08:03 -050015using DeleteInterface = sdbusplus::xyz::openbmc_project::Object::server::Delete;
16using DeleteObject = ServerObject<DeleteInterface>;
17
Matt Spinler2cfceb42018-04-23 11:13:04 -050018using DeleteAllInterface =
19 sdbusplus::xyz::openbmc_project::Collection::server::DeleteAll;
20using DeleteAllObject = ServerObject<DeleteAllInterface>;
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 Spinler433bead2018-04-23 11:08:03 -050027 POLICY,
28 DELETE
Matt Spinlere0017eb2018-03-27 11:17:38 -050029};
Matt Spinlere0017eb2018-03-27 11:17:38 -050030}
31}