293 #define SOL_FLOW_METATYPE_API_VERSION (1)
310 #ifndef SOL_NO_API_VERSION
325 #ifdef SOL_FLOW_METATYPE_MODULE_EXTERNAL
345 #define SOL_FLOW_METATYPE(_NAME, decl ...) \
346 SOL_API const struct sol_flow_metatype *SOL_FLOW_METATYPE = \
347 &((const struct sol_flow_metatype) { \
348 SOL_SET_API_VERSION(.api_version = SOL_FLOW_METATYPE_API_VERSION, ) \
371 #define SOL_FLOW_METATYPE(_NAME, decl ...) \
372 const struct sol_flow_metatype SOL_FLOW_METATYPE_ ## _NAME = { \
373 SOL_SET_API_VERSION(.api_version = SOL_FLOW_METATYPE_API_VERSION, ) \
struct sol_str_slice contents
Parameters for the metatype that is being created.
Definition: sol-flow-metatype.h:89
struct sol_str_slice name
The node name that is being created.
Definition: sol-flow-metatype.h:88
int(* read_file)(const struct sol_flow_metatype_context *ctx, const char *name, struct sol_buffer *buf)
Opens a file for the meta type.
Definition: sol-flow-metatype.h:101
String slice type.
Definition: sol-str-slice.h:84
These are routines that Soletta provides for its buffer implementation.
The node type describes the capabilities and operations of a node.
Definition: sol-flow.h:796
These are routines that Soletta provides for its string slice implementation.
Meta type context.
Definition: sol-flow-metatype.h:87
int(* store_type)(const struct sol_flow_metatype_context *ctx, struct sol_flow_node_type *type)
Stores the meta type in the Soletta infrastructure.
Definition: sol-flow-metatype.h:118
These routines are used for Soletta flows manipulation.
Soletta vector is an array that grows dynamically.
Definition: sol-vector.h:58
These are routines that Soletta provides for its vector implementation.
A sol_buffer is a dynamic array, that can be resized if needed.
Definition: sol-buffer.h:130