18 #ifndef _UPNPP_H_X_INCLUDED_ 19 #define _UPNPP_H_X_INCLUDED_ 23 #include <sys/types.h> 31 #include <unordered_map> 35 #include "libupnpp/config.h" 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;
55 std::string serviceType;
57 std::vector<std::pair<std::string, std::string> > data;
61 extern std::string caturl(
const std::string& s1,
const std::string& s2);
63 extern std::string baseurl(
const std::string& url);
64 extern std::string path_getfather(
const std::string &s);
65 extern std::string path_getsimple(
const std::string &s);
66 template <
class T>
bool csvToStrings(
const std::string& s, T &tokens);
70 extern bool stringToBool(
const std::string& s,
bool *v);
73 extern std::string evTypeAsString(Upnp_EventType);
83 void registerHandler(Upnp_EventType et, Upnp_FunPtr handler,
void *cookie);
89 : handler(0), cookie(0) {}
91 : handler(h), cookie(c) {}
96 int setupWebServer(
const std::string& description, UpnpDevice_Handle *dvh);
97 UpnpClient_Handle getclh();
100 static int init_error;
101 UpnpClient_Handle clh;
103 std::map<Upnp_EventType, Handler> handlers;
Definition: upnpp_p.hxx:47
Definition: base64.cxx:26
Definition: upnpp_p.hxx:86
Definition: upnpp_p.hxx:75
Definition: upnpp_p.hxx:53