mmr_event_data_set()

Set user data for the dictionary returned with the last event

Synopsis:

#include <mm/events.h>
int mmr_event_data_set(mmr_context_t *ctxt,
                       void *usrdata)

Arguments:

ctxt
A context handle
usrdata
A pointer to the user data to associate with the dictionary

Library:

mmrndclient

Description:

Set user data to associate with the dictionary returned with the last event. The dictionary contains all of the mm-renderer properties reported by this event and gets stored in the data field of the mmr_event_t structures returned for subsequent events.

Note: This function is thread-safe only when using different context handles in each call. It's neither interrupt handler-safe nor signal-handler safe.

Returns:

Zero on success, or -1 if there is no longer a pending event or the last event was a deletion