![]() |
SolarCapture C Bindings User Guide
SF-115721-CD
Draft 2A
|
sc_arg: An argument to a node's initialisation function. More...
Data Structures | |
struct | sc_arg |
Representation of an argument. Used by node init functions. More... | |
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... | |
Functions | |
static struct sc_arg | SC_ARG_INT (const char *name, int64_t val) |
static struct sc_arg | SC_ARG_STR (const char *name, const char *val) |
static struct sc_arg | SC_ARG_OBJ (const char *name, struct sc_object *val) |
static struct sc_arg | SC_ARG_DBL (const char *name, double val) |
sc_arg: An argument to a node's initialisation function.
enum sc_param_type |
Possible parameter types that can be used for arguments in a node's init function.
Enumerator | |
---|---|
SC_PARAM_STR |
const char pointer (nul terminated) |
SC_PARAM_INT |
signed 64 bit int |
SC_PARAM_OBJ |
sc_object pointer |
SC_PARAM_DBL |
native double type |
|
static |
Function to construct a sc_arg struct of type SC_PARAM_DBL
name | Name of argument. |
val | Value of argument. |
|
static |
Function to construct a sc_arg struct of type SC_PARAM_INT
name | Name of argument. |
val | Value of argument. |
Function to construct a sc_arg struct of type SC_PARAM_OBJ
name | Name of argument. |
val | Value of argument. |
|
static |
Function to construct a sc_arg struct of type SC_PARAM_STR
name | Name of argument. |
val | Value of argument. |