summaryrefslogtreecommitdiffstats
path: root/xyz/openbmc_project/Logging
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2017-02-13 22:51:40 -0600
committerAdriana Kobylak <anoo@us.ibm.com>2017-02-27 08:49:06 -0600
commit1a7508bbfd10ab9b97cfff757e57a88b7a34c576 (patch)
tree0e97cae480c5f4f828ee19db1b3ef201d62b0413 /xyz/openbmc_project/Logging
parent23b475a04b61ce1b25dc3ca9c0db04fdfdd415e3 (diff)
downloadphosphor-logging-1a7508bbfd10ab9b97cfff757e57a88b7a34c576.tar.gz
phosphor-logging-1a7508bbfd10ab9b97cfff757e57a88b7a34c576.zip
Manager: Auto-generate the code
Auto-generate the Manager code during build time using the sdbus++ tool. Closes: openbmc/phosphor-logging#1 Change-Id: Idb66725dc2b3a919981dc1a0acfebfde16c4420f Signed-off-by: Adriana Kobylak <anoo@linux.vnet.ibm.com>
Diffstat (limited to 'xyz/openbmc_project/Logging')
-rw-r--r--xyz/openbmc_project/Logging/Internal/Manager/server.hpp82
1 files changed, 0 insertions, 82 deletions
diff --git a/xyz/openbmc_project/Logging/Internal/Manager/server.hpp b/xyz/openbmc_project/Logging/Internal/Manager/server.hpp
deleted file mode 100644
index bbbdef8..0000000
--- a/xyz/openbmc_project/Logging/Internal/Manager/server.hpp
+++ /dev/null
@@ -1,82 +0,0 @@
-#pragma once
-#include <tuple>
-#include <systemd/sd-bus.h>
-#include <sdbusplus/server.hpp>
-
-namespace sdbusplus
-{
-namespace xyz
-{
-namespace openbmc_project
-{
-namespace Logging
-{
-namespace Internal
-{
-namespace server
-{
-
-class Manager
-{
- public:
- /* Define all of the basic class operations:
- * Not allowed:
- * - Default constructor to avoid nullptrs.
- * - Copy operations due to internal unique_ptr.
- * - Move operations due to 'this' being registered as the
- * 'context' with sdbus.
- * Allowed:
- * - Destructor.
- */
- Manager() = delete;
- Manager(const Manager&) = delete;
- Manager& operator=(const Manager&) = delete;
- Manager(Manager&&) = delete;
- Manager& operator=(Manager&&) = delete;
- virtual ~Manager() = 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.
- */
- Manager(bus::bus& bus, const char* path);
-
-
-
- /** @brief Implementation for Commit
- * Write the requested error/event entry with its associated metadata fields to flash.
- *
- * @param[in] transactionId - The unique identifier of the journal entry(ies) to be committed.
- * @param[in] errMsg - The error exception message associated with the error event log to be committed.
- */
- virtual void commit(
- uint64_t transactionId,
- std::string errMsg) = 0;
-
-
-
-
- private:
-
- /** @brief sd-bus callback for Commit
- */
- static int _callback_Commit(
- sd_bus_message*, void*, sd_bus_error*);
-
-
- static constexpr auto _interface = "xyz.openbmc_project.Logging.Internal.Manager";
- static const vtable::vtable_t _vtable[];
- sdbusplus::server::interface::interface
- _xyz_openbmc_project_Logging_Internal_Manager_interface;
-
-
-};
-
-
-} // namespace server
-} // namespace Internal
-} // namespace Logging
-} // namespace openbmc_project
-} // namespace xyz
-} // namespace sdbusplus
-
OpenPOWER on IntegriCloud