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.


Parameters:

        action_context  The action context to get the fully qualified name from
        nbytes          A point to an integer to store the size of the data in

Returns:

        The data payload of the event if there is an event name in the context, null otherwise
          

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.