Soletta™ Framework
|
Example of soletta's flow in C using low-level API. More...
#include <stdlib.h>
#include "sol-macros.h"
#include "soletta.h"
#include "sol-flow-static.h"
#include "custom-node-types-gen.h"
#include "sol-flow/console.h"
Functions | |
static void | shutdown (void) |
SOL_MAIN_DEFAULT (startup, shutdown) | |
static void | startup (void) |
Variables | |
static const struct sol_flow_static_conn_spec | conns [] |
static struct sol_flow_node * | flow |
static struct sol_flow_static_node_spec | nodes [] |
static const struct sol_flow_node_type_custom_node_types_reader_options | reader_opts |
static const struct sol_flow_node_type_custom_node_types_writer_options | writer_opts |
Example of soletta's flow in C using low-level API.
It will manipulate the nodes and connections by indexes in space-efficient lookup matrices.
It's not as nice to use, matrices are looked up in place and thus must be in correct ascending order.
This is the most efficient way to use soletta, but it's not user friendly. To solve this we recommend one to write FBP files and use da-fbp-generator to create the efficient lowlevel flow of it.
See highlevel.c on how to use the lowlevel API that does not rely on node type descriptions.
|
static |
References flow, and sol_flow_node_del().
|
static |
References flow, sol_flow_get_node_type, sol_flow_static_new(), and sol_flow_static_node_spec::type.
|
static |
|
static |
Referenced by shutdown(), and startup().
|
static |
|
static |
|
static |