mUPnP for C
subscription.c File Reference
#include <mupnp/event/event.h>
#include <mupnp/upnp_function.h>
#include <mupnp/util/log.h>
#include <stdio.h>
#include <stdlib.h>

Functions

const char * mupnp_event_subscription_totimeoutheaderstring (mUpnpTime time, mUpnpString *buf)
 
mUpnpTime mupnp_event_subscription_gettimeout (const char *headerValue)
 
const char * mupnp_event_subscription_createsid (char *buf, size_t bufSize)
 
const char * mupnp_event_subscription_tosidheaderstring (const char *sid, char *buf, size_t bufSize)
 
const char * mupnp_event_subscription_getsid (const char *headerValue)
 

Function Documentation

◆ mupnp_event_subscription_createsid()

const char * mupnp_event_subscription_createsid ( char * buf,
size_t bufSize )

Create SID for subscription

Parameters
bufCharacter buffer where SID is created
bufSizeBuffer size.
Returns
Pointer to buffer containing SID

◆ mupnp_event_subscription_getsid()

const char * mupnp_event_subscription_getsid ( const char * headerValue)

Get SID

Parameters
headerValueRaw header C string
Returns
C string containing SID

◆ mupnp_event_subscription_gettimeout()

mUpnpTime mupnp_event_subscription_gettimeout ( const char * headerValue)

Get event subscription timeout

Parameters
headerValueHeader value
Returns
Timeout

◆ mupnp_event_subscription_tosidheaderstring()

const char * mupnp_event_subscription_tosidheaderstring ( const char * sid,
char * buf,
size_t bufSize )

Creates SID header string

Parameters
sidCharacter array containing the SID
bufA buffer where header string is created
bufSizeSize of the used buffer
Returns
Pointer to buffer containing SID header string

◆ mupnp_event_subscription_totimeoutheaderstring()

const char * mupnp_event_subscription_totimeoutheaderstring ( mUpnpTime time,
mUpnpString * buf )

Create timeout header string

Parameters
timeTimeout
bufBuffer used when creating header string
Returns
Timeout header C string