mUPnP for C
eventlistener_list.c File Reference
#include <mupnp/event/event.h>
#include <mupnp/util/log.h>
#include <string.h>

Functions

mUpnpEventListenerListmupnp_eventlistenerlist_new ()
 
void mupnp_eventlistenerlist_delete (mUpnpEventListenerList *eventListenerList)
 
void mupnp_eventlistenerlist_remove (mUpnpEventListenerList *eventListenerList, MUPNP_EVENT_LISTENER listener)
 
void mupnp_eventlistenerlist_add (mUpnpEventListenerList *eventListenerList, MUPNP_EVENT_LISTENER listener)
 
void mupnp_eventlistenerlist_notify (mUpnpEventListenerList *eventListenerList, mUpnpProperty *property)
 

Function Documentation

◆ mupnp_eventlistenerlist_add()

void mupnp_eventlistenerlist_add ( mUpnpEventListenerList * eventListenerList,
MUPNP_EVENT_LISTENER listener )

Add a listener to the event listener list

Parameters
eventListenerListThe event listener list
listenerThe listener to add

◆ mupnp_eventlistenerlist_delete()

void mupnp_eventlistenerlist_delete ( mUpnpEventListenerList * eventListenerList)

Delete a event listener list.

Parameters
eventListenerListThe event listener list to delete

◆ mupnp_eventlistenerlist_new()

mUpnpEventListenerList * mupnp_eventlistenerlist_new ( void )

Create a new event listener list

◆ mupnp_eventlistenerlist_notify()

void mupnp_eventlistenerlist_notify ( mUpnpEventListenerList * eventListenerList,
mUpnpProperty * property )

Call all event listeners in the list with the given evented data.

Parameters
eventListenerListThe list to iterate thru
propertyThe property that has been evented

◆ mupnp_eventlistenerlist_remove()

void mupnp_eventlistenerlist_remove ( mUpnpEventListenerList * eventListenerList,
MUPNP_EVENT_LISTENER listener )

Remove a listener from the event listener list

Parameters
eventListenerListThe event listener list
listenerThe listener to remove