mUPnP for C
|
Functions | |
bool | mupnp_controlpoint_seteventlistener (mUpnpControlPoint *ctrlPoint, MUPNP_EVENT_LISTENER evlistener) |
mUpnpService * | mupnp_device_getfirstexpiratedservice (mUpnpControlPoint *ctrlPoint, mUpnpDevice *dev, mUpnpTime expirationTime) |
void | mupnp_controlpoint_expirationhandler (mUpnpThread *thread) |
bool | mupnp_controlpoint_resubscribe (mUpnpControlPoint *ctrlPoint, mUpnpService *service, long timeout) |
bool | mupnp_controlpoint_subscribe (mUpnpControlPoint *ctrlPoint, mUpnpService *service, long timeout) |
bool | mupnp_controlpoint_unsubscribe (mUpnpControlPoint *ctrlPoint, mUpnpService *service) |
bool | mupnp_controlpoint_subscribeall (mUpnpControlPoint *ctrlPoint, mUpnpDevice *dev, long timeout) |
bool | mupnp_controlpoint_resubscribeall (mUpnpControlPoint *ctrlPoint, mUpnpDevice *dev, long timeout) |
bool | mupnp_controlpoint_unsubscribeall (mUpnpControlPoint *ctrlPoint, mUpnpDevice *dev) |
void mupnp_controlpoint_expirationhandler | ( | mUpnpThread * | thread | ) |
Worker thread for handling expirations.
thread | the thread in question |
bool mupnp_controlpoint_resubscribe | ( | mUpnpControlPoint * | ctrlPoint, |
mUpnpService * | service, | ||
long | timeout ) |
Re-subscribe to a service's events (i.e. renew subscription)
ctrlPoint | The control point in use |
service | The service to subscribe to |
timeout | Timeout for subscription expiration/renewal |
bool mupnp_controlpoint_resubscribeall | ( | mUpnpControlPoint * | ctrlPoint, |
mUpnpDevice * | dev, | ||
long | timeout ) |
Re-subscribe to all of the device's services' events (i.e. renew subscription)
ctrlPoint | The control point in use |
dev | The device to subscribe to |
timeout | Timeout for subscription expiration/renewal |
bool mupnp_controlpoint_seteventlistener | ( | mUpnpControlPoint * | ctrlPoint, |
MUPNP_EVENT_LISTENER | evlistener ) |
Set a single event listener for the control point. Use this function to get event notifications to user-space applications if you need only one listener.
ctrlPoint | The control point in question |
evlistener | The callback function to set, that is of type MUPNP_EVENT_LISTENER, or NULL |
bool mupnp_controlpoint_subscribe | ( | mUpnpControlPoint * | ctrlPoint, |
mUpnpService * | service, | ||
long | timeout ) |
Subscribe to a service's events
ctrlPoint | The control point in use |
service | The service to subscribe to |
timeout | Timeout for subscription expiration/renewal |
bool mupnp_controlpoint_subscribeall | ( | mUpnpControlPoint * | ctrlPoint, |
mUpnpDevice * | dev, | ||
long | timeout ) |
Subscribe to all of the device's services' events
ctrlPoint | The control point in use |
dev | The device to subscribe to |
timeout | Timeout for subscription expiration/renewal |
bool mupnp_controlpoint_unsubscribe | ( | mUpnpControlPoint * | ctrlPoint, |
mUpnpService * | service ) |
Unsubscribe to a service's events (i.e. cancel subscription)
ctrlPoint | The control point in use |
service | The service to unsubscribe to |
bool mupnp_controlpoint_unsubscribeall | ( | mUpnpControlPoint * | ctrlPoint, |
mUpnpDevice * | dev ) |
Unsubscribe to all of the device's services' events (i.e. cancel subscription)
ctrlPoint | The control point in use |
dev | The device to unsubscribe to |
mUpnpService * mupnp_device_getfirstexpiratedservice | ( | mUpnpControlPoint * | ctrlPoint, |
mUpnpDevice * | dev, | ||
mUpnpTime | expirationTime ) |