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
Functions | Variables
highlevel.c File Reference

Example of soletta's flow in C using high-level API. More...

#include <stdlib.h>
#include "sol-macros.h"
#include "soletta.h"
#include "sol-flow-builder.h"
#include "custom-node-types-gen.h"

Functions

static void shutdown (void)
 
 SOL_MAIN_DEFAULT (startup, shutdown)
 
static void startup (void)
 

Variables

static struct sol_flow_nodeflow
 
static struct sol_flow_node_typeflow_node_type
 

Detailed Description

Example of soletta's flow in C using high-level API.

It will manipulate the nodes and connections using easy to use and human readable strings.

There is a runtime penalty as this requires node type descriptions to be available, consuming disk and memory space, thus it is not recommended for very constrained systems.

See lowlevel.c on how to use the lowlevel API that does not rely on node type descriptions.

Function Documentation

static void shutdown ( void  )
static
SOL_MAIN_DEFAULT ( startup  ,
shutdown   
)
static void startup ( void  )
static

Variable Documentation

struct sol_flow_node* flow
static
struct sol_flow_node_type* flow_node_type
static