* UPnP.{cpp,h} : cleanup & add class stub if opt-out

This commit is contained in:
hagen 2016-07-12 00:00:00 +00:00
parent fda3cd5fe7
commit 9dc5a4fce3
2 changed files with 21 additions and 5 deletions

13
UPnP.h
View file

@ -52,5 +52,18 @@ namespace transport
}
}
#else // USE_UPNP
namespace i2p {
namespace transport {
/* class stub */
class UPnP {
public:
UPnP () {};
~UPnP () {};
void Start () { LogPrint(eLogWarning, "UPnP: this module was disabled at compile-time"); }
void Stop () {};
};
}
}
#endif // USE_UPNP
#endif // __UPNP_H__