#include <oskit/com/listener.h>oskit_listener_t * oskit_listener_create(oskit_listener_callback_t *handler, void *arg);
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.
- handler
- Function to be called when the listener object is notified.
- arg
- Parameter to pass to function.
Returns a pointer to the new listener object, or 0 if none could be allocated.