next up previous contents index
Next: 4.9.2 notify: Inform a Up: 4.9 oskit_listener: callback interface Previous: 4.9 oskit_listener: callback interface

4.9.1 create: Create a new listener object

 

SYNOPSIS

#include <oskit/com/listener.h>

oskit_listener_t * oskit_listener_create(oskit_listener_callback_t *handler, void *arg);

DESCRIPTION

Create a new oskit_listener object. Whenever the notify method is invoked on the object, the function handler will be called with the parameter passed to notify and arg.

PARAMETERS

handler
Function to be called when the listener object is notified.
arg
Parameter to pass to function.

RETURNS

Returns a pointer to the new listener object, or 0 if none could be allocated.



Utah Flux Research Group