Switch to generated interface factory methods
Automatically populate the association of interface with an
appropriate sdbusplus server side interface binding.
Change-Id: Ie46d91cf2e6726b033789be6228c10ca14a76220
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/manager.hpp b/manager.hpp
index 5f78066..16a13e6 100644
--- a/manager.hpp
+++ b/manager.hpp
@@ -143,6 +143,9 @@
using InterfaceComposite = std::map<std::string, HolderPtr>;
using ObjectReferences = std::map<std::string, InterfaceComposite>;
using Events = std::map<const char *, Event>;
+ using MakerType = HolderPtr(*)(
+ sdbusplus::bus::bus &, const char *);
+ using Makers = std::map<std::string, MakerType>;
/** @brief Provided for testing only. */
bool _shutdown;
@@ -167,6 +170,9 @@
/** @brief A container of pimgen generated events and responses. */
static const Events _events;
+
+ /** @brief A container of pimgen generated factory methods. */
+ static const Makers _makers;
};
} // namespace manager