miniupnpc-libevent: add event_cif_url/event_conn_url

This commit is contained in:
Thomas Bernard 2014-12-08 17:24:25 +01:00
parent 215b357e55
commit 2455cc85b6
2 changed files with 4 additions and 0 deletions

View File

@ -390,8 +390,10 @@ static void upnpc_desc_received(struct evhttp_request * req, void * pvoid)
printIGD(&igd); printIGD(&igd);
#endif /* DEBUG */ #endif /* DEBUG */
d->control_conn_url = build_url_string(igd.urlbase, d->root_desc_location, igd.first.controlurl); d->control_conn_url = build_url_string(igd.urlbase, d->root_desc_location, igd.first.controlurl);
d->event_conn_url = build_url_string(igd.urlbase, d->root_desc_location, igd.first.eventsuburl);
d->conn_service_type = strdup(igd.first.servicetype); d->conn_service_type = strdup(igd.first.servicetype);
d->control_cif_url = build_url_string(igd.urlbase, d->root_desc_location, igd.CIF.controlurl); d->control_cif_url = build_url_string(igd.urlbase, d->root_desc_location, igd.CIF.controlurl);
d->event_cif_url = build_url_string(igd.urlbase, d->root_desc_location, igd.CIF.eventsuburl);
d->cif_service_type = strdup(igd.CIF.servicetype); d->cif_service_type = strdup(igd.CIF.servicetype);
debug_printf("control_conn_url='%s'\n (service_type='%s')\n", debug_printf("control_conn_url='%s'\n (service_type='%s')\n",
d->control_conn_url, d->conn_service_type); d->control_conn_url, d->conn_service_type);

View File

@ -56,8 +56,10 @@ struct upnpc_device {
char * root_desc_location; char * root_desc_location;
struct evhttp_connection * desc_conn; struct evhttp_connection * desc_conn;
char * control_cif_url; char * control_cif_url;
char * event_cif_url;
char * cif_service_type; char * cif_service_type;
char * control_conn_url; char * control_conn_url;
char * event_conn_url;
char * conn_service_type; char * conn_service_type;
struct evhttp_connection * soap_conn; struct evhttp_connection * soap_conn;
struct NameValueParserData soap_response_data; struct NameValueParserData soap_response_data;