The opaque invocation argument type.
Synopsis:
#include <bps/navigator_invoke.h>
typedef struct navigator_invoke_invocation_t navigator_invoke_invocation_t;
Library:
libbps (For the qcc command, use the -l bps option to link against this library)
Description:
To perform an invocation, you must:
- Instantiate a navigator_invoke_invocation_t structure with the navigator_invoke_invocation_create() function.
- Set all desired members with the navigator_invoke_invocation_set_*() functions to match the purpose of the invocation. A minimum of either a target, action, or type member is required for the invocation to be recognised by the framework (though further members may be required for more specific invocations, such as including a uri or data member for invocations that require input data to be successfully performed.)
- Send the invocation with the navigator_invoke_invocation_send() function. Depending on the members you set to the navigator_invoke_invocation_t structure, the invocation is sent either directly to a target handler or the brokering system to determine which target to use based on the provided information.
- Retrieve the data from an invocation in an event handler by using the navigator_invoke_invocation_get_*() functions.
- Deallocate the memory reserved for the navigator_invoke_invocation_t structure with the navigator_invoke_invocation_destroy() function.