Skip to main content
Version: 9.0.2

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

ParameterTypeDescription
action_contextgr_action_context_t*The action context to get the fully qualified name from.
nbytesint*A pointer to an integer to store the size of the data payload in bytes.

Returns:

TypeDescription
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.