Harlequin RIP SDK

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...
 

Detailed Description

Function Documentation

◆ rf_extract_json_string()

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.

Parameters
[in]farm_replyContains the message payload.
Returns
If successful, the string will be returned. Otherwise NULL. The returned string should be freed using rf_free_json_string() when no longer required.

◆ rf_free_json_string()

void rf_free_json_string ( char **  p_json_string)

Free the string created by rf_extract_json_string().

Parameters
[in,out]p_json_stringThe string to be freed. Safe against NULL *p_json_string, which is always set to NULL on return.