Function GenieProfile_getJsonData¶
Defined in File GenieProfile.h
Function Documentation¶
-
Genie_Status_t GenieProfile_getJsonData(const GenieProfile_Handle_t profileHandle, Genie_AllocCallback_t callback, const char **jsonData)¶
A function to get data collected on a profile handle. The provided callback will be called for the client to provide memory allocation on which the JSON object will be copied.
- Parameters
profileHandle – [in] A profile handle. Must not be NULL
callback – [in] A callback function handle. Must not be NULL.
jsonData – [out] The collected profile data. The associated buffer was allocated in the client defined allocation callback and the memory needs to be managed by the client.
- Returns
Status code:
GENIE_STATUS_SUCCESS: API call was successful.
GENIE_STATUS_ERROR_INVALID_HANDLE: Profile handle is invalid.
GENIE_STATUS_ERROR_INVALID_ARGUMENT: At least one argument is invalid.
GENIE_STATUS_ERROR_MEM_ALLOC: Memory allocation failure.