make upnp take asio context
Change-Id: Ie039a084d04dee1a1bfcda5865b6482f272ccfe3
diff --git a/include/upnp/upnp_context.h b/include/upnp/upnp_context.h
index a85db51..b9a5d26 100644
--- a/include/upnp/upnp_context.h
+++ b/include/upnp/upnp_context.h
@@ -37,6 +37,7 @@
#include "upnp/mapping.h"
#include <opendht/rng.h>
+#include <opendht/logger.h>
#include <asio/steady_timer.hpp>
#include <set>
@@ -110,11 +111,11 @@
};
public:
- UPnPContext();
+ UPnPContext(std::shared_ptr<asio::io_context> ctx, std::shared_ptr<dht::log::Logger> logger);
~UPnPContext();
// Retrieve the UPnPContext singleton.
- static std::shared_ptr<UPnPContext> getUPnPContext();
+ // static std::shared_ptr<UPnPContext> getUPnPContext();
// Terminate the instance.
void shutdown();