Soletta™ Framework
Framework for making IoT devices

Full online documentation | C API Index
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
sol-flow-single.h File Reference
#include "sol-flow.h"

Go to the source code of this file.

Data Structures

struct  sol_flow_single_options
 Structure for the specification of a single node. More...
 

Macros

#define SOL_FLOW_SINGLE_CONNECTIONS(...)   (const uint16_t[]){ __VA_ARGS__, UINT16_MAX }
 Convenience macro to declare an array of uint16_t terminated by UINT16_MAX. More...
 
#define SOL_FLOW_SINGLE_OPTIONS_API_VERSION   (1)
 This versions the rest of the structure and should be used in base.sub_api. More...
 
#define SOL_FLOW_SINGLE_OPTIONS_DEFAULTS(...)
 This macro sets struct sol_flow_single_options base member to contain the proper api_version (SOL_FLOW_NODE_OPTIONS_API_VERSION) and sub_api (SOL_FLOW_SINGLE_OPTIONS_API_VERSION). More...
 

Typedefs

typedef struct
sol_flow_single_options 
sol_flow_single_options
 Structure for the specification of a single node. More...
 

Functions

int32_t sol_flow_single_connect_port_in (struct sol_flow_node *node, uint16_t port_idx)
 Connect the input port port_idx of the inner node. More...
 
int32_t sol_flow_single_connect_port_out (struct sol_flow_node *node, uint16_t port_idx)
 Connect the output port port_idx of the inner node. More...
 
int32_t sol_flow_single_disconnect_port_in (struct sol_flow_node *node, uint16_t port_idx)
 Disconnect the input port port_idx of the inner node. More...
 
int32_t sol_flow_single_disconnect_port_out (struct sol_flow_node *node, uint16_t port_idx)
 Disconnect the output port port_idx of the inner node. More...
 
struct sol_flow_nodesol_flow_single_get_child (const struct sol_flow_node *node)
 Return the reference to the inner node. More...
 
struct sol_flow_nodesol_flow_single_new (const char *id, const struct sol_flow_node_type *base_type, const struct sol_flow_node_options *options, const uint16_t *connected_ports_in, const uint16_t *connected_ports_out, void(*process)(void *user_data, struct sol_flow_node *node, uint16_t port, const struct sol_flow_packet *packet), const void *user_data)
 create a single-node instance for the given base_type. More...
 
struct sol_flow_node_typesol_flow_single_new_type (const struct sol_flow_node_type *base_type)
 create a wrapper type to use base_type nodes without a flow. More...
 
const struct sol_flow_node_typesol_flow_single_type_get_child_type (const struct sol_flow_node_type *single_type)
 Given a single-node type wrapper, return the internal (child) type. More...
 

Macro Definition Documentation

#define SOL_FLOW_SINGLE_OPTIONS_API_VERSION   (1)

This versions the rest of the structure and should be used in base.sub_api.

See Also
SOL_FLOW_SINGLE_OPTIONS_DEFAULTS()