Function GenieSamplerConfig_createFromJson¶
Defined in File GenieSampler.h
Function Documentation¶
-
Genie_Status_t GenieSamplerConfig_createFromJson(const char *str, GenieSamplerConfig_Handle_t *configHandle)¶
A function to create a sampler configuration from a JSON string.
- Parameters
str – [in] A configuration string. Must not be NULL.
configHandle – [out] A handle to the created sampler config. Must not be NULL.
- Returns
Status code:
GENIE_STATUS_SUCCESS: API call was successful.
GENIE_STATUS_ERROR_INVALID_ARGUMENT: At least one argument is invalid.
GENIE_STATUS_ERROR_MEM_ALLOC: Memory allocation failure.
GENIE_STATUS_ERROR_INVALID_CONFIG: At least one configuration option is invalid.