![]() |
Diffusion C API 6.11.5
|
A constraint value defines a datatype and associated value to be used in a topic update constraint. More...
Typedefs | |
typedef struct DIFFUSION_UPDATE_CONSTRAINT_VALUE_T | DIFFUSION_UPDATE_CONSTRAINT_VALUE_T |
Opaque topic update constraint value struct. | |
A constraint value defines a datatype and associated value to be used in a topic update constraint.
DIFFUSION_UPDATE_CONSTRAINT_VALUE_T * diffusion_update_constraint_value_dup | ( | DIFFUSION_UPDATE_CONSTRAINT_VALUE_T * | value | ) |
Creates a duplicate of an update constraint value.
diffusion_update_constraint_value_free
should be called on the pointer when no longer needed.
value | the update constraint value |
void diffusion_update_constraint_value_free | ( | DIFFUSION_UPDATE_CONSTRAINT_VALUE_T * | value | ) |
Frees an update constraint value.
value | the update constraint value |
DIFFUSION_UPDATE_CONSTRAINT_VALUE_T * diffusion_update_constraint_value_from_binary | ( | char * | value, |
size_t | len | ||
) |
Creates an update constraint value from a binary value.
diffusion_update_constraint_value_free
should be called on the pointer when no longer needed.
value | the binary value |
len | the length of the binary value |
NULL
if an error has occurred.DIFFUSION_UPDATE_CONSTRAINT_VALUE_T * diffusion_update_constraint_value_from_bool | ( | bool | value | ) |
Creates an update constraint value from a boolean value.
diffusion_update_constraint_value_free
should be called on the pointer when no longer needed.
value | the boolean value |
NULL
if an error has occurred.DIFFUSION_UPDATE_CONSTRAINT_VALUE_T * diffusion_update_constraint_value_from_double | ( | double | value | ) |
Creates an update constraint value from a double value.
diffusion_update_constraint_value_free
should be called on the pointer when no longer needed.
value | the double value |
NULL
if an error has occurred.DIFFUSION_UPDATE_CONSTRAINT_VALUE_T * diffusion_update_constraint_value_from_int64 | ( | int64_t | value | ) |
Creates an update constraint value from an Int64 value.
diffusion_update_constraint_value_free
should be called on the pointer when no longer needed.
value | the Int64 value |
NULL
if an error has occurred.DIFFUSION_UPDATE_CONSTRAINT_VALUE_T * diffusion_update_constraint_value_from_json_string | ( | char * | value | ) |
Creates an update constraint value from a json string.
diffusion_update_constraint_value_free
should be called on the pointer when no longer needed.
value | the json string |
NULL
if an error has occurred.DIFFUSION_UPDATE_CONSTRAINT_VALUE_T * diffusion_update_constraint_value_from_recordv2_string | ( | char * | value | ) |
Creates an update constraint value from a recordV2 string.
diffusion_update_constraint_value_free
should be called on the pointer when no longer needed.
value | the recordV2 string |
NULL
if an error has occurred.DIFFUSION_UPDATE_CONSTRAINT_VALUE_T * diffusion_update_constraint_value_from_string | ( | char * | value | ) |
Creates an update constraint value from a string value.
diffusion_update_constraint_value_free
should be called on the pointer when no longer needed.
value | the string value |
NULL
if an error has occurred.