Function GenieSampler_registerCallback¶
Defined in File GenieSampler.h
Function Documentation¶
-
Genie_Status_t GenieSampler_registerCallback(const char *name, GenieSampler_ProcessCallback_t samplerCallback)¶
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.
- 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.
Note
This API will soon be deprecated in favor of GenieSampler_registerUserDataCallback.