mUPnP for C
subscription_request.c File Reference
#include <mupnp/control/control.h>
#include <mupnp/device.h>
#include <mupnp/event/event.h>
#include <mupnp/util/log.h>

Functions

void mupnp_event_subscription_request_setsid (mUpnpSubscriptionRequest *subReq, const char *sid)
 
void mupnp_event_subscription_request_settimeout (mUpnpSubscriptionRequest *subReq, long timeout)
 
static void mupnp_event_subscription_request_setservice (mUpnpSubscriptionRequest *subReq, mUpnpService *service)
 
void mupnp_event_subscription_request_setnewsubscription (mUpnpSubscriptionRequest *subReq, mUpnpService *service, const char *callback, mUpnpTime timeout)
 
void mupnp_event_subscription_request_setrenewsubscription (mUpnpSubscriptionRequest *subReq, mUpnpService *service, const char *uuid, mUpnpTime timeout)
 
void mupnp_event_subscription_request_setunsubscription (mUpnpSubscriptionRequest *subReq, mUpnpService *service)
 

Function Documentation

◆ mupnp_event_subscription_request_setnewsubscription()

void mupnp_event_subscription_request_setnewsubscription ( mUpnpSubscriptionRequest * subReq,
mUpnpService * service,
const char * callback,
mUpnpTime timeout )

(Re)initializes subscription request

Parameters
subReqSubscription request
serviceService to be subscribed
callbackURL to be called when service state changes
timeoutSubscription timeout

◆ mupnp_event_subscription_request_setrenewsubscription()

void mupnp_event_subscription_request_setrenewsubscription ( mUpnpSubscriptionRequest * subReq,
mUpnpService * service,
const char * uuid,
mUpnpTime timeout )

(Re)initializes subscription request to be renewal request

Parameters
subReqSubscription request
serviceService to be subscribed
uuidDevices unique identification string
timeoutSubscription timeout

◆ mupnp_event_subscription_request_setservice()

static void mupnp_event_subscription_request_setservice ( mUpnpSubscriptionRequest * subReq,
mUpnpService * service )
static

◆ mupnp_event_subscription_request_setsid()

void mupnp_event_subscription_request_setsid ( mUpnpSubscriptionRequest * subReq,
const char * sid )

Set sid to subscription request

Parameters
subReqSubscription request
sidSID (Subscription id)

◆ mupnp_event_subscription_request_settimeout()

void mupnp_event_subscription_request_settimeout ( mUpnpSubscriptionRequest * subReq,
mUpnpTime timeout )

Set timeout for subscription request

Parameters
subReqSubscription request
timeoutTimeout value for subscription request

◆ mupnp_event_subscription_request_setunsubscription()

void mupnp_event_subscription_request_setunsubscription ( mUpnpSubscriptionRequest * subReq,
mUpnpService * service )

(Re)initializes subscription request to be unsubscription request

Parameters
subReqSubscription request
serviceService where to be unsubscribed