Define the ipmid_get_sd_bus_event_connection
Due to the phosphor-host-ipmid commit (7a7f01)
transporthandler.cpp start referring to the
ipmid_get_sd_bus_event_connection function
and transporthandler.cpp is a provider library
for phosphor-net-ipmid.
This commit defines the ipmid_get_sd_bus_event_connection
function in the context of phosphor-net-ipmid process.
Change-Id: I7fbc39f526138615966a90f78884a80b4cf063f4
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
diff --git a/main.cpp b/main.cpp
index c74b1c8..611a6af 100644
--- a/main.cpp
+++ b/main.cpp
@@ -51,6 +51,14 @@
/*
* @brief Required by apphandler IPMI Provider Library
*/
+sd_event* ipmid_get_sd_event_connection()
+{
+ return loop.event;
+}
+
+/*
+ * @brief Required by apphandler IPMI Provider Library
+ */
unsigned short get_sel_reserve_id()
{
return g_sel_reserve;