|
mUPnP for C
|
#include <mupnp/event/event.h>#include <mupnp/event/notify.h>#include <mupnp/upnp_limit.h>#include <mupnp/util/log.h>#include <mupnp/util/time.h>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) |
| static bool | mupnp_subscriber_notifymain (mUpnpSubscriber *sub, mUpnpService *service, mUpnpStateVariable *statVar) |
| bool | mupnp_subscriber_notify (mUpnpSubscriber *sub, mUpnpStateVariable *statVar) |
| bool | mupnp_subscriber_notifyall (mUpnpSubscriber *sub, void *service) |
| void mupnp_subscriber_clear | ( | mUpnpSubscriber * | sub | ) |
Clear the contents of an event subscriber
| sub | The event subscriber |
| 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 |
|
static |
Post a notification to an event subscriber. This is called in a device.
| sub | The event subscriber |
| statVar | The evented state variable |
| 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 |