Set the source of an invocation.
#include <bps/navigator_invoke.h>
BPS_API int navigator_invoke_invocation_set_source(navigator_invoke_invocation_t *invocation,
const char *source)
BlackBerry 10.0.0
A pointer to the navigator_invoke_invocation_t structure whose source you want to set.
The target you want the invocation target to be send results to. The value must conform to the "[Domain][Sub-domain]" format (see description for further information).
The navigator_invoke_invocation_set_source() function sets the source of a given navigator_invoke_invocation_t structure. The source member is an identifier to a target (as stated in its BAR manifest) to which the results of an invocation are sent. If you assign a source member to an invocation then the receiving target may send a response with the corresponding results.
Assigning a source member to an invocation is not mandatory, but if you do not assign one then the invoked target won't be able to communicate with the caller. Don't assign an invocation source if the sender doesn't support results.
Example: "com.example.result.target"
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.