18#ifndef _UPNPP_H_X_INCLUDED_
19#define _UPNPP_H_X_INCLUDED_
31#include <unordered_map>
36#include "libupnpp/upnpplib.hxx"
37#include "libupnpp/soaphelp.hxx"
43#undef SETUP_DESCRIPTION_BY_BUFFER
50 std::unordered_map<std::string, std::string> args;
56 Internal(
const std::string& st,
const std::string& nm)
57 : serviceType(st), name(nm) {}
58 std::string serviceType;
60 std::vector<std::pair<std::string, std::string> > data;
64extern std::string caturl(
const std::string& s1,
const std::string& s2);
66extern std::string baseurl(
const std::string& url);
67extern std::string path_getfather(
const std::string &s);
68extern std::string path_getsimple(
const std::string &s);
69template <
class T>
bool csvToStrings(
const std::string& s, T &tokens);
73extern bool stringToBool(
const std::string& s,
bool *v);
85 bool reSanitizeURLs();
90 void registerHandler(Upnp_EventType et, Upnp_FunPtr handler,
void *cookie);
96 : handler(0), cookie(0) {}
98 : handler(h), cookie(c) {}
103 int setupWebServer(
const std::string& description, UpnpDevice_Handle *dvh);
104 UpnpClient_Handle getclh();
107 static int init_error;
108 UpnpClient_Handle clh;
110 std::map<Upnp_EventType, Handler> handlers;
Definition upnpp_p.hxx:93
Definition upnpp_p.hxx:81
void registerHandler(Upnp_EventType et, Upnp_FunPtr handler, void *cookie)
Specify function to be called on given UPnP event.
Definition upnpplib.cxx:374
Definition upnpp_p.hxx:47
Definition upnpp_p.hxx:53
Deal with data for the SOAP action protocol.
Definition base64.cxx:26
std::string evTypeAsString(Upnp_EventType)
Translate libupnp event type to string.
Definition upnpplib.cxx:425
std::string reSanitizeURL(const std::string &in)
Sanitize URL which is supposedly already encoded but maybe not fully.
Definition upnpplib.cxx:630