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 Fields
sol_flow_resolver Struct Reference

Resolver's structure. More...

#include <sol-flow-resolver.h>

Data Fields

uint16_t api_version
 API version number. More...
 
void * data
 Resolver's context data (will be provided to resolve) More...
 
const char * name
 Resolver's name (useful for logging) More...
 
int(* resolve )(void *data, const char *id, struct sol_flow_node_type const **type, struct sol_flow_node_named_options *named_opts)
 Resolution routine. More...
 

Detailed Description

Resolver's structure.

Field Documentation

uint16_t sol_flow_resolver::api_version

API version number.

void* sol_flow_resolver::data

Resolver's context data (will be provided to resolve)

const char* sol_flow_resolver::name

Resolver's name (useful for logging)

int(* sol_flow_resolver::resolve)(void *data, const char *id, struct sol_flow_node_type const **type, struct sol_flow_node_named_options *named_opts)

Resolution routine.

That is the routine used to resolve id into a node type.

Parameters
dataContextual data of this Resolver
idId that needs to be resolved
typeWhere to return the node type of id
named_optsOptions of the found node type if available
Returns
0 in case of success, error code (always negative) otherwise

The documentation for this struct was generated from the following file: