SRM  v0.10.0-1
Simple Rendering Manager
SRMListener

Module for managing event listeners. More...

Detailed Description

Module for managing event listeners.

The SRMListener module provides functions for creating, setting, and managing event listeners. Event listeners are used to handle events or callbacks in response to specific actions or changes.

See also
srmCoreAddDeviceCreatedEventListener()
srmCoreAddDeviceRemovedEventListener()
srmCoreAddConnectorPluggedEventListener()
srmCoreAddConnectorUnpluggedEventListener()

Functions

void srmListenerSetUserData (SRMListener *listener, void *userData)
 Set user data associated with an event listener. More...
 
void * srmListenerGetUserData (SRMListener *listener)
 Get user data associated with an event listener. More...
 
void srmListenerSetCallbackFunction (SRMListener *listener, void *callbackFunction)
 Set the callback function associated with an event listener. More...
 
void * srmListenerGetCallbackFunction (SRMListener *listener)
 Get the callback function associated with an event listener. More...
 
void srmListenerDestroy (SRMListener *listener)
 Destroy an event listener and release associated resources. More...
 

Typedef Documentation

◆ SRMListener

typedef struct SRMListenerStruct SRMListener

Function Documentation

◆ srmListenerSetUserData()

void srmListenerSetUserData ( SRMListener listener,
void *  userData 
)

Set user data associated with an event listener.

Parameters
listenerA pointer to the SRMListener instance.
userDataA pointer to user-defined data to associate with the listener.

◆ srmListenerGetUserData()

void* srmListenerGetUserData ( SRMListener listener)

Get user data associated with an event listener.

Parameters
listenerA pointer to the SRMListener instance.
Returns
A pointer to the user-defined data associated with the listener.

◆ srmListenerSetCallbackFunction()

void srmListenerSetCallbackFunction ( SRMListener listener,
void *  callbackFunction 
)

Set the callback function associated with an event listener.

Parameters
listenerA pointer to the SRMListener instance.
callbackFunctionA pointer to the callback function to associate with the listener.

◆ srmListenerGetCallbackFunction()

void* srmListenerGetCallbackFunction ( SRMListener listener)

Get the callback function associated with an event listener.

Parameters
listenerA pointer to the SRMListener instance.
Returns
A pointer to the callback function associated with the listener.

◆ srmListenerDestroy()

void srmListenerDestroy ( SRMListener listener)

Destroy an event listener and release associated resources.

Parameters
listenerA pointer to the SRMListener instance to destroy.