From 55ef5b04c9f35174b2c398793438af49b832f4e5 Mon Sep 17 00:00:00 2001 From: Vishwanatha Subbanna Date: Fri, 10 Mar 2017 13:32:08 +0530 Subject: Link to dbus interfaces library for using generated code Change-Id: I7db65c8bea0bc111e9b0810ffdc33a8ffc924f5e Signed-off-by: Vishwanatha Subbanna --- xyz/openbmc_project/Led/Group/server.hpp | 77 -------------------------------- 1 file changed, 77 deletions(-) delete mode 100644 xyz/openbmc_project/Led/Group/server.hpp (limited to 'xyz/openbmc_project') diff --git a/xyz/openbmc_project/Led/Group/server.hpp b/xyz/openbmc_project/Led/Group/server.hpp deleted file mode 100644 index 9f5a796..0000000 --- a/xyz/openbmc_project/Led/Group/server.hpp +++ /dev/null @@ -1,77 +0,0 @@ -#pragma once -#include -#include -#include - -namespace sdbusplus -{ -namespace xyz -{ -namespace openbmc_project -{ -namespace Led -{ -namespace server -{ - -class Group -{ - public: - /* Define all of the basic class operations: - * Not allowed: - * - Default constructor to avoid nullptrs. - * - Copy operations due to internal unique_ptr. - * Allowed: - * - Move operations. - * - Destructor. - */ - Group() = delete; - Group(const Group&) = delete; - Group& operator=(const Group&) = delete; - Group(Group&&) = default; - Group& operator=(Group&&) = default; - virtual ~Group() = default; - - /** @brief Constructor to put object onto bus at a dbus path. - * @param[in] bus - Bus to attach to. - * @param[in] path - Path to attach at. - */ - Group(bus::bus& bus, const char* path); - - - - - /** Get value of Asserted */ - virtual bool asserted() const; - /** Set value of Asserted */ - virtual bool asserted(bool value); - - - private: - - /** @brief sd-bus callback for get-property 'Asserted' */ - static int _callback_get_Asserted( - sd_bus*, const char*, const char*, const char*, - sd_bus_message*, void*, sd_bus_error*); - /** @brief sd-bus callback for set-property 'Asserted' */ - static int _callback_set_Asserted( - sd_bus*, const char*, const char*, const char*, - sd_bus_message*, void*, sd_bus_error*); - - - static constexpr auto _interface = "xyz.openbmc_project.Led.Group"; - static const vtable::vtable_t _vtable[]; - sdbusplus::server::interface::interface - _xyz_openbmc_project_Led_Group_interface; - - bool _asserted{}; - -}; - - -} // namespace server -} // namespace Led -} // namespace openbmc_project -} // namespace xyz -} // namespace sdbusplus - -- cgit v1.2.1