Set the ID of an invocation.
BPS_API int navigator_invoke_invocation_set_id(navigator_invoke_invocation_t *invocation, const char *id)
A pointer to the navigator_invoke_invocation_t structure whose id you want to set.
The invocation ID you want to display on the delivery receipt response. This value must be in numerical format. For example, a valid id would be "42".
The navigator_invoke_invocation_set_id() function sets the invocation ID of a given navigator_invoke_invocation_t structure. Assign an id member to any invocation for which you would like to receive a delivery receipt response. The id member you assign through a sender appears in its corresponding delivery receipt. The receipt is returned once the invocation is dispatched to a target, but does not imply that the target has processed the invocation. If the sender terminates before receiving a receipt response then it is forfeit.
Assigning an id member to an invocation is not mandatory, but if you do not assign one there is no way to determine the result of the invocation request. Don't assign an invocation ID if you don't want to receive a delivery receipt response.
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.
Last modified: 2013-09-30