50 #ifndef SOL_NO_API_VERSION
52 #define SOL_FLOW_INSPECTOR_API_VERSION (1)
Structure containing a set of inspecting routines.
Definition: sol-flow-inspector.h:49
void(* will_disconnect_port)(const struct sol_flow_inspector *inspector, const struct sol_flow_node *src_node, uint16_t src_port, uint16_t src_conn_id, const struct sol_flow_node *dst_node, uint16_t dst_port, uint16_t dst_conn_id)
Callback to trigger when a connection is terminated.
Definition: sol-flow-inspector.h:98
These routines are used for Soletta flow packets manipulation.
Node options are a set of attributes defined by the Node Type that can change the behavior of a Node...
Definition: sol-flow.h:552
struct sol_flow_node sol_flow_node
A node is an entity that has input/output ports.
Definition: sol-flow.h:71
struct sol_flow_packet sol_flow_packet
A packet is a generic container for different kinds (types) of contents.
Definition: sol-flow-packet.h:54
bool sol_flow_set_inspector(const struct sol_flow_inspector *inspector)
Provide a set of inspecting routines to flow's runtime inspector.
void(* will_send_packet)(const struct sol_flow_inspector *inspector, const struct sol_flow_node *src_node, uint16_t src_port, const struct sol_flow_packet *packet)
Callback to trigger when a packet is about to be sent.
Definition: sol-flow-inspector.h:108
void(* did_open_node)(const struct sol_flow_inspector *inspector, const struct sol_flow_node *node, const struct sol_flow_node_options *options)
Callback to trigger when a node is open.
Definition: sol-flow-inspector.h:61
void(* will_close_node)(const struct sol_flow_inspector *inspector, const struct sol_flow_node *node)
Callback to trigger when a node is about to be closed.
Definition: sol-flow-inspector.h:69
struct sol_flow_inspector sol_flow_inspector
Structure containing a set of inspecting routines.
void(* did_connect_port)(const struct sol_flow_inspector *inspector, const struct sol_flow_node *src_node, uint16_t src_port, uint16_t src_conn_id, const struct sol_flow_node *dst_node, uint16_t dst_port, uint16_t dst_conn_id)
Callback to trigger when a connection between ports is made.
Definition: sol-flow-inspector.h:85
void(* will_deliver_packet)(const struct sol_flow_inspector *inspector, const struct sol_flow_node *dst_node, uint16_t dst_port, uint16_t dst_conn_id, const struct sol_flow_packet *packet)
Callback to trigger when a packet is about to be delivered.
Definition: sol-flow-inspector.h:119
uint16_t api_version
API version.
Definition: sol-flow-inspector.h:51