gr_context_get_event_data
#include <gre/gre.h>
void *gr_context_get_event_data(
gr_action_context_t *action_context,
int *nbytes
);
The gr_context_get_event_data function returns the data payload of the
event that the action is associated with.
The gr_context_get_event_data function will return the data payload of
the event that occured that caused the action to be invoked. It will
store the size of the data payload in the nbytes parameter that is
passed in.
Parameters
| Parameter | Type | Description |
|---|---|---|
action_context | gr_action_context_t* | The action context to get the fully qualified name from. |
nbytes | int* | A pointer to an integer to store the size of the data payload in bytes. |
Returns:
| Type | Description |
|---|---|
void* | The data payload of the event if there is an event name in the context, null otherwise. Users should verify that nbytes is the expected size before using the data payload. |