mUPnP for C
|
#include <mupnp/typedef.h>
#include <mupnp/util/list.h>
#include <mupnp/util/string.h>
#include <mupnp/net/url.h>
#include <mupnp/util/time.h>
#include <mupnp/statevariable.h>
Data Structures | |
struct | _mUpnpSubscriber |
Macros | |
#define | mupnp_subscriber_next(sub) |
#define | mupnp_subscriber_remove(sub) |
#define | mupnp_subscriber_setsid(sub, value) |
#define | mupnp_subscriber_getsid(sub) |
#define | mupnp_subscriber_settimeout(sub, value) |
#define | mupnp_subscriber_gettimeout(sub) |
#define | mupnp_subscriber_setsubscriptiontime(sub, value) |
#define | mupnp_subscriber_getsubscriptiontime(sub) |
#define | mupnp_subscriber_setnotifycount(sub, value) |
#define | mupnp_subscriber_getnotifycount(sub) |
#define | mupnp_subscriber_setdeliveryurl(sub, value) |
#define | mupnp_subscriber_getdeliveryhost(sub) |
#define | mupnp_subscriber_getdeliverypath(sub) |
#define | mupnp_subscriber_getdeliveryport(sub) |
#define | mupnp_subscriberlist_clear(subList) |
#define | mupnp_subscriberlist_size(subList) |
#define | mupnp_subscriberlist_gets(subList) |
#define | mupnp_subscriberlist_add(subList, sub) |
Typedefs | |
typedef struct _mUpnpSubscriber | mUpnpSubscriber |
typedef struct _mUpnpSubscriber | mUpnpSubscriberList |
Functions | |
mUpnpSubscriber * | mupnp_subscriber_new (void) |
void | mupnp_subscriber_delete (mUpnpSubscriber *sub) |
void | mupnp_subscriber_clear (mUpnpSubscriber *sub) |
void | mupnp_subscriber_renew (mUpnpSubscriber *sub) |
long | mupnp_subscriber_incrementnotifycount (mUpnpSubscriber *sub) |
bool | mupnp_subscriber_isexpired (mUpnpSubscriber *sub) |
bool | mupnp_subscriber_notify (mUpnpSubscriber *sub, mUpnpStateVariable *statVar) |
bool | mupnp_subscriber_notifyall (mUpnpSubscriber *sub, void *service) |
mUpnpSubscriberList * | mupnp_subscriberlist_new (void) |
void | mupnp_subscriberlist_delete (mUpnpSubscriberList *subscriberlist) |
#define mupnp_subscriber_getdeliveryhost | ( | sub | ) |
Set the subscriber's delivery host
sub | The event subscriber |
#define mupnp_subscriber_getdeliverypath | ( | sub | ) |
Set the subscriber's delivery path
sub | The event subscriber |
#define mupnp_subscriber_getdeliveryport | ( | sub | ) |
Set the subscriber's delivery port
sub | The event subscriber |
#define mupnp_subscriber_getnotifycount | ( | sub | ) |
Get the notify count
sub | The event subscriber |
#define mupnp_subscriber_getsid | ( | sub | ) |
Get the subscriber's SID (Subscription IDentifier) value
sub | The current event subscriber |
#define mupnp_subscriber_getsubscriptiontime | ( | sub | ) |
Get the subscription time (duration)
sub | The event subscriber |
#define mupnp_subscriber_gettimeout | ( | sub | ) |
Get the subscription timeout (expiration time)
sub | The event subscriber |
#define mupnp_subscriber_next | ( | sub | ) |
Get the next subscriber in a subscriber list. Use as an iterator.
sub | The current event subscriber |
#define mupnp_subscriber_remove | ( | sub | ) |
Remove the event subscriber from a subscriber list.
sub | The event subscriber to remove |
#define mupnp_subscriber_setdeliveryurl | ( | sub, | |
value ) |
Set the subscriber's delivery URL
sub | The event subscriber |
value | The delivery URL |
#define mupnp_subscriber_setnotifycount | ( | sub, | |
value ) |
Set the notify count to a certain value.
sub | The event subscriber |
value | Notify count |
#define mupnp_subscriber_setsid | ( | sub, | |
value ) |
Set the subscriber's SID (Subscription IDentifier) value
sub | The event subscriber |
value | The SID value |
#define mupnp_subscriber_setsubscriptiontime | ( | sub, | |
value ) |
Set the subscription time (duration) to a certain value.
sub | The event subscriber |
value | Subscription time |
#define mupnp_subscriber_settimeout | ( | sub, | |
value ) |
Set the subscription timeout (expiration time) to a certain value.
sub | The event subscriber |
value | Timeout |
#define mupnp_subscriberlist_add | ( | subList, | |
sub ) |
Add a new event subscriber to a subscriber list
subList | The subscriber list to add to |
sub | The subscriber to add |
#define mupnp_subscriberlist_clear | ( | subList | ) |
Clear the contents of a subscriber list
subList | The subscriber list to clear |
#define mupnp_subscriberlist_gets | ( | subList | ) |
Get the first item in a subscriber list (use as the first step in iteration).
subList | The subscriber list to evaluate |
#define mupnp_subscriberlist_size | ( | subList | ) |
Get the size (node count) of a subscriber list
subList | The subscriber list to evaluate |
typedef struct _mUpnpSubscriber mUpnpSubscriber |
The device-side structure for an event subscriber
typedef struct _mUpnpSubscriber mUpnpSubscriberList |
void mupnp_subscriber_clear | ( | mUpnpSubscriber * | sub | ) |
void mupnp_subscriber_delete | ( | mUpnpSubscriber * | sub | ) |
Destroy an event subscriber
sub | The event subscriber |
long mupnp_subscriber_incrementnotifycount | ( | mUpnpSubscriber * | sub | ) |
Increment the event notify count by one
sub | The event subscriber |
bool mupnp_subscriber_isexpired | ( | mUpnpSubscriber * | sub | ) |
Check, whether a subscriber's event subscription has been expired
sub | The subscriber |
mUpnpSubscriber * mupnp_subscriber_new | ( | void | ) |
Create a new event subscriber
bool mupnp_subscriber_notify | ( | mUpnpSubscriber * | sub, |
mUpnpStateVariable * | statVar ) |
Post a notification to an event subscriber. This is called in a device.
sub | The event subscriber |
statVar | The evented state variable |
bool mupnp_subscriber_notifyall | ( | mUpnpSubscriber * | sub, |
void * | service ) |
Post a notification to an event subscriber. This is called in a device.
sub | The event subscriber |
service | The evented service |
void mupnp_subscriber_renew | ( | mUpnpSubscriber * | sub | ) |
Renew a subscription. Essentially sets subscription time (duration) to zero and resets notify count (== event key).
sub | The event subscriber |
void mupnp_subscriberlist_delete | ( | mUpnpSubscriberList * | subscriberlist | ) |
Destroy an event subscriber list
subscriberlist | The list to destroy |
mUpnpSubscriberList * mupnp_subscriberlist_new | ( | void | ) |
Create a new event subscriber list