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
Typedefs | Functions
sol-flow-builder.h File Reference

These routines are used by Soletta Flow Builder. More...

#include <stdbool.h>
#include "sol-flow.h"

Go to the source code of this file.

Typedefs

typedef struct sol_flow_builder sol_flow_builder
 Builder's handle. More...
 

Functions

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. More...
 
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. More...
 
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. More...
 
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. More...
 
int sol_flow_builder_del (struct sol_flow_builder *builder)
 Destroy a sol_flow_builder instance. More...
 
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. More...
 
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. More...
 
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. More...
 
struct sol_flow_node_typesol_flow_builder_get_node_type (struct sol_flow_builder *builder)
 Returns the node type generated by the builder. More...
 
struct sol_flow_buildersol_flow_builder_new (void)
 Creates a new instance of a sol_flow_builder. More...
 
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. More...
 
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. More...
 

Detailed Description

These routines are used by Soletta Flow Builder.