From 2455cc85b65106fdd1e2335786d5a357b6b561e8 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Mon, 8 Dec 2014 17:24:25 +0100 Subject: [PATCH] miniupnpc-libevent: add event_cif_url/event_conn_url --- miniupnpc-libevent/miniupnpc-libevent.c | 2 ++ miniupnpc-libevent/miniupnpc-libevent.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/miniupnpc-libevent/miniupnpc-libevent.c b/miniupnpc-libevent/miniupnpc-libevent.c index 995575c..809cb9b 100644 --- a/miniupnpc-libevent/miniupnpc-libevent.c +++ b/miniupnpc-libevent/miniupnpc-libevent.c @@ -390,8 +390,10 @@ static void upnpc_desc_received(struct evhttp_request * req, void * pvoid) printIGD(&igd); #endif /* DEBUG */ 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->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); debug_printf("control_conn_url='%s'\n (service_type='%s')\n", d->control_conn_url, d->conn_service_type); diff --git a/miniupnpc-libevent/miniupnpc-libevent.h b/miniupnpc-libevent/miniupnpc-libevent.h index dd15a5d..f5f716f 100644 --- a/miniupnpc-libevent/miniupnpc-libevent.h +++ b/miniupnpc-libevent/miniupnpc-libevent.h @@ -56,8 +56,10 @@ struct upnpc_device { char * root_desc_location; struct evhttp_connection * desc_conn; char * control_cif_url; + char * event_cif_url; char * cif_service_type; char * control_conn_url; + char * event_conn_url; char * conn_service_type; struct evhttp_connection * soap_conn; struct NameValueParserData soap_response_data;