mUPnP for C
subscription.h File Reference
#include <mupnp/typedef.h>
#include <mupnp/http/http.h>

Macros

#define mupnp_event_subscription_request_delete(subReq)
 
#define mupnp_event_subscription_request_sethost(subReq, ipaddr, port)
 
#define mupnp_event_subscription_request_gethost(subReq, value)
 
#define mupnp_event_subscription_request_setnt(subReq, value)
 
#define mupnp_event_subscription_request_getnt(subReq, value)
 
#define mupnp_event_subscription_request_setcallback(subReq, value)
 
#define mupnp_event_subscription_request_getcallback(subReq, value)
 
#define mupnp_event_subscription_request_setsid(subReq, value)
 
#define mupnp_event_subscription_request_getsid(subReq, value)
 

Functions

mUpnpSubscriptionRequestmupnp_event_subscription_request_new (void)
 
void mupnp_event_subscription_request_settimeout (mUpnpSubscriptionRequest *subReq, long timeout)
 
long mupnp_event_subscription_request_gettimeout (mUpnpSubscriptionRequest *subReq)
 

Macro Definition Documentation

◆ mupnp_event_subscription_request_delete

#define mupnp_event_subscription_request_delete ( subReq)
Value:
void mupnp_http_request_delete(mUpnpHttpRequest *httpReq)
Definition http_request.c:75

Delete subscription request

Parameters
subReqsubscription request

◆ mupnp_event_subscription_request_getcallback

#define mupnp_event_subscription_request_getcallback ( subReq,
value )
Value:
#define mupnp_http_request_getheadervalue(httpReq, name)
Definition http.h:386
#define MUPNP_HTTP_CALLBACK
Definition http.h:113

Get callback url from subscription request

@subReq Subscription request @value Not actually used anywhere

Bug
Value not needed here!

◆ mupnp_event_subscription_request_gethost

#define mupnp_event_subscription_request_gethost ( subReq,
value )
Value:
#define mupnp_http_request_gethost(httpReq)
Definition http.h:417

Get host header value from subscription request

Parameters
subReqSubscription request
valueNot actually used anywhere
Bug
Value not needed here! (It is even processed out from to be compiled code)

◆ mupnp_event_subscription_request_getnt

#define mupnp_event_subscription_request_getnt ( subReq,
value )
Value:
#define MUPNP_HTTP_NT
Definition http.h:107

Get NT from subscription request

Parameters
subReqSubscription request
valueNot actually used anywhere
Bug
Value not needed here!

◆ mupnp_event_subscription_request_getsid

#define mupnp_event_subscription_request_getsid ( subReq,
value )
Value:
#define MUPNP_HTTP_SID
Definition http.h:111

Get SID from subscription request object

Parameters
subReqSubscription request
valueNot used
Bug
Value not needed here!

◆ mupnp_event_subscription_request_setcallback

#define mupnp_event_subscription_request_setcallback ( subReq,
value )
Value:
#define mupnp_http_request_setheadervalue(httpReq, name, value)
Definition http.h:383

Set callback URL for eventing

Parameters
subReqSubscription request @value value String which defines the callback URL

◆ mupnp_event_subscription_request_sethost

#define mupnp_event_subscription_request_sethost ( subReq,
ipaddr,
port )
Value:
mupnp_http_request_sethost(subReq, ipaddr, port)
#define mupnp_http_request_sethost(httpReq, addr, port)
Definition http.h:416

Set host header value into underlying HTTP packet

Parameters
subReqSubscription request
ipaddrHost ip address
portHost port

◆ mupnp_event_subscription_request_setnt

#define mupnp_event_subscription_request_setnt ( subReq,
value )
Value:

Set NT (Notification type) for subscription request

Parameters
subReqSubscription request
valueNotification type

◆ mupnp_event_subscription_request_setsid

#define mupnp_event_subscription_request_setsid ( subReq,
value )
Value:

Set SID (Subscription ID) for subscription request

Parameters
subReqSubscription request
valueSID

Function Documentation

◆ mupnp_event_subscription_request_gettimeout()

long mupnp_event_subscription_request_gettimeout ( mUpnpSubscriptionRequest * subReq)

Get timeout value from subscription request

Parameters
subReqSubscription request
Returns
Timeout

◆ mupnp_event_subscription_request_new()

mUpnpSubscriptionRequest * mupnp_event_subscription_request_new ( void )

Create new subscription request

◆ mupnp_event_subscription_request_settimeout()

void mupnp_event_subscription_request_settimeout ( mUpnpSubscriptionRequest * subReq,
long timeout )

Set timeout for subscription request

Parameters
subReqSubscription request
timeoutTimeout

Set timeout for subscription request

Parameters
subReqSubscription request
timeoutTimeout value for subscription request