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-simple-c-type.h File Reference

These routines are used for Soletta flow's Simple C type. More...

#include "sol-flow.h"
#include "sol-macros.h"

Go to the source code of this file.

Data Structures

struct  sol_flow_simple_c_type_event
 Simple C event structure. More...
 

Macros

#define sol_flow_simple_c_type_new(context_data_type, cb,...)   sol_flow_simple_c_type_new_full(#cb, sizeof(context_data_type), sizeof(struct sol_flow_node_type), cb, ## __VA_ARGS__, NULL)
 This macro will simplify usage of sol_flow_simple_c_type_new_full() by taking only a context data type and the callback, as well as the port information. More...
 
#define sol_flow_simple_c_type_new_nocontext(cb,...)   sol_flow_simple_c_type_new_full(#cb, 0, sizeof(struct sol_flow_node_type), cb, ## __VA_ARGS__, NULL)
 This macro will simplify usage of sol_flow_simple_c_type_new_full() by taking only the callback as well as the port information. More...
 
#define SOL_FLOW_SIMPLE_C_TYPE_PORT_IN(name, type)
 Helper macro to declare an input port. More...
 
#define SOL_FLOW_SIMPLE_C_TYPE_PORT_OUT(name, type)
 Helper macro to declare an output port. More...
 
#define SOL_FLOW_SIMPLE_C_TYPE_PORT_TYPE_IN   1
 Input port identifier. More...
 
#define SOL_FLOW_SIMPLE_C_TYPE_PORT_TYPE_OUT   2
 Output port identifier. More...
 

Typedefs

typedef struct
sol_flow_simple_c_type_event 
sol_flow_simple_c_type_event
 Simple C event structure. More...
 

Functions

uint16_t sol_flow_simple_c_type_get_port_in_index (const struct sol_flow_node_type *type, const char *port_in_name)
 Helper to retrieve the input port index from its name. More...
 
uint16_t sol_flow_simple_c_type_get_port_out_index (const struct sol_flow_node_type *type, const char *port_out_name)
 Helper to retrieve the output port index from its name. More...
 
struct sol_flow_node_typesol_flow_simple_c_type_new_full (const char *name, size_t context_data_size, uint16_t options_size, int(*func)(struct sol_flow_node *node, const struct sol_flow_simple_c_type_event *ev, void *data),...) SOL_ATTR_SENTINEL
 Creates a flow node type using a simple C function. More...
 

Detailed Description

These routines are used for Soletta flow's Simple C type.