Function GenieProfileConfig_createFromJson¶
Defined in File GenieProfile.h
Function Documentation¶
-
Genie_Status_t GenieProfileConfig_createFromJson(const char *str, GenieProfileConfig_Handle_t *configHandle)¶
A function to create a profile configuration from a JSON string.
- Parameters
str – [in] A configuration string. Must not be NULL.
configHandle – [out] A handle to the created 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.