int sol_flow_builder_add_node(struct sol_flow_builder *builder, const char *name, const struct sol_flow_node_type *type, const struct sol_flow_node_options *option)
Add a node to the nodes spec of the resulting flow.
static struct sol_flow_builder * builder
Definition: simple-c-type.c:44
int sol_flow_builder_export_port_in(struct sol_flow_builder *builder, const char *node_name, const char *port_name, int port_idx, const char *exported_name)
Exports an input port of a node using exported_name as identifier.
int sol_flow_builder_connect(struct sol_flow_builder *builder, const char *src_name, const char *src_port_name, int src_port_idx, const char *dst_name, const char *dst_port_name, int dst_port_idx)
Add a connection (via port names) to the conn spec of the resulting flow.
int sol_flow_builder_export_port_out(struct sol_flow_builder *builder, const char *node_name, const char *port_name, int port_idx, const char *exported_name)
Exports an output port of a node using exported_name as identifier.
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_type * sol_flow_builder_get_node_type(struct sol_flow_builder *builder)
Returns the node type generated by the builder.
struct sol_flow_builder sol_flow_builder
Builder's handle.
Definition: sol-flow-builder.h:59
Resolver's structure.
Definition: sol-flow-resolver.h:54
The node type describes the capabilities and operations of a node.
Definition: sol-flow.h:796
int sol_flow_builder_connect_by_index(struct sol_flow_builder *builder, const char *src_name, uint16_t src_port_index, const char *dst_name, uint16_t dst_port_index)
Add a connection to the conn spec of the resulting flow.
int sol_flow_builder_add_node_by_type(struct sol_flow_builder *builder, const char *name, const char *type_name, const char *const *options_strv)
Add a node (via its type's name) to the nodes spec of the resulting flow.
int sol_flow_builder_del(struct sol_flow_builder *builder)
Destroy a sol_flow_builder instance.
int sol_flow_builder_export_option(struct sol_flow_builder *builder, const char *node_name, const char *option_name, const char *exported_name)
Exports an given option of a node using exported_name as identifier.
int sol_flow_builder_set_type_description(struct sol_flow_builder *builder, const char *name, const char *category, const char *description, const char *author, const char *url, const char *license, const char *version)
Set the type description to be used by the builder.
struct sol_flow_builder * sol_flow_builder_new(void)
Creates a new instance of a sol_flow_builder.
These routines are used for Soletta flows manipulation.
void sol_flow_builder_set_resolver(struct sol_flow_builder *builder, const struct sol_flow_resolver *resolver)
Set the Resolver to be used by the builder's resulting flow.