CoreFlow 1.0.0
A modern orchestration and execution runtime
|
The Public Node Callback API. More...
Typedefs | |
typedef vx_enum | vx_action |
The formal typedef of the response from the callback. | |
typedef vx_action(VX_CALLBACK * | vx_nodecomplete_f) (vx_node node) |
A callback to the client after a particular node has completed. | |
Enumerations | |
enum | vx_action_e { VX_ACTION_CONTINUE = VX_ENUM_BASE(VX_ID_KHRONOS, VX_ENUM_ACTION) + 0x0 , VX_ACTION_ABANDON = VX_ENUM_BASE(VX_ID_KHRONOS, VX_ENUM_ACTION) + 0x1 } |
A return code enumeration from a vx_nodecomplete_f during execution. More... | |
Functions | |
VX_API_ENTRY vx_status VX_API_CALL | vxAssignNodeCallback (vx_node node, vx_nodecomplete_f callback) |
Assigns a callback to a node. If a callback already exists in this node, this function must return an error and the user may clear the callback by passing a NULL pointer as the callback. | |
VX_API_ENTRY vx_nodecomplete_f VX_API_CALL | vxRetrieveNodeCallback (vx_node node) |
Retrieves the current node callback function pointer set on the node. | |
The Public Node Callback API.
typedef vx_action(VX_CALLBACK * vx_nodecomplete_f) (vx_node node) |
#include <vx_types.h>
A callback to the client after a particular node has completed.
[in] | node | The node to which the callback was attached. |
vx_action_e
. enum vx_action_e |
#include <vx_types.h>
A return code enumeration from a vx_nodecomplete_f
during execution.
vxAssignNodeCallback
Enumerator | |
---|---|
VX_ACTION_CONTINUE | Continue executing the graph with no changes. |
VX_ACTION_ABANDON | Stop executing the graph. |
VX_API_ENTRY vx_status VX_API_CALL vxAssignNodeCallback | ( | vx_node | node, |
vx_nodecomplete_f | callback ) |
#include <vx_api.h>
Assigns a callback to a node. If a callback already exists in this node, this function must return an error and the user may clear the callback by passing a NULL pointer as the callback.
[in] | node | The reference to the node. |
[in] | callback | The callback to associate with completion of this specific node. |
vx_status_e
enumeration. VX_SUCCESS | Callback assigned; any other value indicates failure. |
VX_ERROR_INVALID_REFERENCE | node is not a valid vx_node reference. |
VX_API_ENTRY vx_nodecomplete_f VX_API_CALL vxRetrieveNodeCallback | ( | vx_node | node | ) |
#include <vx_api.h>
Retrieves the current node callback function pointer set on the node.
[in] | node | The reference to the vx_node object. |
NULL | No callback is set. |
* | The node callback function. |