Function GenieSampler_registerUserDataCallback

Function Documentation

Genie_Status_t GenieSampler_registerUserDataCallback(const char *name, GenieSampler_UserDataCallback_t samplerCallback, const void *userData)

A function to register Sampler Process callback.

Parameters
  • name[in] Name associated to the callback. Needs to be specified in Sampler config, to indicate which process callback to use during sampling.

  • samplerCallback[in] Callback with the sampler process implementation.

  • userData[in] Void pointer to add user data pertaining to callback function.

Returns

Status code:

  • GENIE_STATUS_SUCCESS: API call was successful.

  • GENIE_STATUS_ERROR_INVALID_ARGUMENT: At least one argument is invalid.

  • GENIE_STATUS_ERROR_GENERAL: Register Callback failed.