Set the payload data of a push_payload_t structure.
#include <bbpush/push_payload.h>
int push_payload_set_payload(push_payload_t *push_payload, const unsigned char *payload, int payload_length)
BlackBerry 10.2.0
A pointer to the push_payload_t structure whose payload you want to set.
The payload object contains push id, the raw pushed content, the headers (which are the key-value pairs of metadata sent with the pushed content), and a flag to indicate that application level acknowledgment is required for this push message.
The length of the payload data.
The push_payload_set_payload() function sets the payload and payload_length of a given push_payload_t structure.
PUSH_SUCCESS upon success, PUSH_FAILURE with errno set otherwise.