SolarCapture C Bindings
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
Data Structures | Macros | Enumerations
args.h File Reference

sc_arg: An argument to a node's initialisation function. More...

Go to the source code of this file.

Data Structures

struct  sc_arg
 Representation of an argument. Used by node init functions. More...
 
union  sc_arg.val
 

Macros

#define SC_ARG_INT(_name, _val)   { .name = _name, .type = SC_PARAM_INT, .val.i = _val }
 
#define SC_ARG_STR(_name, _val)   { .name = _name, .type = SC_PARAM_STR, .val.str = _val }
 
#define SC_ARG_OBJ(_name, _val)   { .name = _name, .type = SC_PARAM_OBJ, .val.obj = _val }
 
#define SC_ARG_DBL(_name, _val)   { .name = _name, .type = SC_PARAM_DBL, .val.dbl = _val }
 

Enumerations

enum  sc_param_type { SC_PARAM_STR, SC_PARAM_INT, SC_PARAM_OBJ, SC_PARAM_DBL }
 Possible parameter types that can be used for arguments in a node's init function. More...
 

Detailed Description

sc_arg: An argument to a node's initialisation function.