push_payload_set_payload()

Set the payload data of a push_payload_t structure.

Synopsis:

#include <bbpush/push_payload.h>
 
int push_payload_set_payload(push_payload_t *push_payload, const unsigned char *payload, int payload_length)

Since:

BlackBerry 10.2.0

Arguments:

push_payload

A pointer to the push_payload_t structure whose payload you want to set.

payload

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.

payload_length

The length of the payload data.

Library:

libPushService (For the qcc command, use the -l PushService option to link against this library)

Description:

The push_payload_set_payload() function sets the payload and payload_length of a given push_payload_t structure.

Returns:

PUSH_SUCCESS upon success, PUSH_FAILURE with errno set otherwise.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus