Functions | |
char * | rf_extract_json_string (RF_FARM_REPLY *farm_reply) |
Extract the payload of messages received from message_callback() into a zero terminated string containing a JSON object. The string is UTF-8 encoded that contains no BOM or embedded NULs. More... | |
void | rf_free_json_string (char **p_json_string) |
Free the string created by rf_extract_json_string(). More... | |
char* rf_extract_json_string | ( | RF_FARM_REPLY * | farm_reply | ) |
Extract the payload of messages received from message_callback() into a zero terminated string containing a JSON object. The string is UTF-8 encoded that contains no BOM or embedded NULs.
[in] | farm_reply | Contains the message payload. |
NULL.
The returned string should be freed using rf_free_json_string() when no longer required. void rf_free_json_string | ( | char ** | p_json_string | ) |
Free the string created by rf_extract_json_string().
[in,out] | p_json_string | The string to be freed. Safe against NULL *p_json_string, which is always set to NULL on return. |