upnp: add and use a callback listener interface
authorShaleen Jain <shaleen@jain.sh>
Wed, 27 Jun 2018 12:14:29 +0000 (17:44 +0530)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Fri, 29 Jun 2018 11:19:15 +0000 (13:19 +0200)
commit66839225ff9cea419bd9d578278d35eb3c4db800
tree896ba6d6875cb9af5cfb2687704e5d3f40a0322e
parent0fff484a85699bdc2bff7a27e7587ba47f5028b0
upnp: add and use a callback listener interface

Introduce a Listener interface to
UpnpInstanceWrapper that can be used
by modules to get UpnpEvent callbacks
from libupnp decoupling UpnpInstanceWrapper
from any specific module or its members.

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
modules/services_discovery/upnp.cpp
modules/services_discovery/upnp.hpp