This commit is contained in:
Thomas Bernard 2015-10-10 11:52:38 +02:00
parent 3c78e9c78c
commit 95a75b6dd0
2 changed files with 2 additions and 1 deletions

View File

@ -653,7 +653,7 @@ static int upnpc_send_soap_request(upnpc_device_t * p, const char * url,
#ifdef ENABLE_UPNP_EVENTS
#define EVHTTP_REQ_NOTIFY ((EVHTTP_REQ_MAX) << 1)
#define EVHTTP_REQ_SUBSCRIBE ((EVHTTP_REQ_NOTIFY) << 1)
static const struct evhttp_extended_methods ext_methods[] = {
static const struct evhttp_extended_method ext_methods[] = {
{"NOTIFY", EVHTTP_REQ_NOTIFY, EVHTTP_METHOD_HAS_BODY},
{"SUBSCRIBE", EVHTTP_REQ_SUBSCRIBE, EVHTTP_METHOD_HAS_BODY},
{NULL, 0, 0}

View File

@ -131,6 +131,7 @@ static void soap(int code, upnpc_t * p, upnpc_device_t * d, void * data)
static void event_callback(upnpc_t * p, upnpc_device_t * d, void * data,
const char * service_id, const char * property_name, const char * property_value)
{
(void)p; (void)d; (void)data;
printf("PROPERTY VALUE CHANGE (service=%s): %s=%s\n", service_id, property_name, property_value);
}
#endif /* ENABLE_UPNP_EVENTS */