diff options
Diffstat (limited to '')
-rw-r--r-- | src/db/upnp/Discovery.hxx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/db/upnp/Discovery.hxx b/src/db/upnp/Discovery.hxx index 1f24135b2..edda3a8de 100644 --- a/src/db/upnp/Discovery.hxx +++ b/src/db/upnp/Discovery.hxx @@ -65,15 +65,19 @@ class UPnPDeviceDirectory { */ class ContentDirectoryDescriptor { public: - ContentDirectoryDescriptor() = default; - - ContentDirectoryDescriptor(const std::string &url, - const char *description, - time_t last, int exp) - :device(url, description), last_seen(last), expires(exp+20) {} UPnPDevice device; time_t last_seen; int expires; // seconds valid + + ContentDirectoryDescriptor() = default; + + ContentDirectoryDescriptor(time_t last, int exp) + :last_seen(last), expires(exp+20) {} + + bool Parse(const std::string &url, const char *description, + Error &_error) { + return device.Parse(url, description, _error); + } }; LibUPnP *const lib; |