|
tio
|
Represents value of the action. More...
#include <tio.h>
Data Fields | |
| tio_data_type_t | type |
| Data type of the value. More... | |
| union { | |
| long long_value | |
| double double_value | |
| tio_bool_t bool_value | |
| const char * opaque_value | |
| } | param |
| Union stores value. More... | |
| size_t | opaque_value_length |
| Indicate length of opaque_value in case type is TIO_TYPE_STRING, TIO_TYPE_OBJECT or TIO_TYPE_ARRAY. More... | |
Represents value of the action.
| tio_bool_t tio_action_value_t::bool_value |
Value stored when type is TIO_TYPE_BOOLEAN
| double tio_action_value_t::double_value |
Value stored when type is TIO_TYPE_DOUBLE
| long tio_action_value_t::long_value |
Value stored when type is TIO_TYPE_INTEGER
| const char* tio_action_value_t::opaque_value |
Value stored when type is TIO_TYPE_STRING, TIO_TYPE_OBJECT or TIO_TYPE_ARRAY
| size_t tio_action_value_t::opaque_value_length |
Indicate length of opaque_value in case type is TIO_TYPE_STRING, TIO_TYPE_OBJECT or TIO_TYPE_ARRAY.
| union { ... } tio_action_value_t::param |
Union stores value.
if type is TIO_TYPE_STRING, TIO_TYPE_OBJECT or TIO_TYPE_ARRAY, opaque_value is the pointer to it's JSON string representation. You need to use opaque_value_length to determine the length of the value since it might not be null terminated.
| tio_data_type_t tio_action_value_t::type |
Data type of the value.
1.8.13