|
Nyx Node
|

Functions | |
| nyx_dict_t * | nyx_blob_prop_new (STR_t name, __NYX_NULLABLE__ STR_t label, __NYX_NULLABLE__ STR_t format, __NYX_ZEROABLE__ size_t size, __NYX_NULLABLE__ BUFF_t buff, bool managed) |
| Allocates a new INDI / Nyx BLOB property. | |
| bool | nyx_blob_prop_set_managed (nyx_dict_t *prop, __NYX_ZEROABLE__ size_t size, __NYX_NULLABLE__ BUFF_t buff) |
| Sets the new value of the provided property object. | |
| bool | nyx_blob_prop_set_unmanaged (nyx_dict_t *prop, __NYX_ZEROABLE__ size_t size, __NYX_NULLABLE__ BUFF_t buff) |
| Sets the new value of the provided property object. | |
| void | nyx_blob_prop_get (const nyx_dict_t *prop, __NYX_NULLABLE__ size_t *size, __NYX_NULLABLE__ buff_t *buff) |
| Gets the current value of the provided property object. | |
| nyx_dict_t * | nyx_blob_vector_new (STR_t device, STR_t name, nyx_state_t state, nyx_perm_t perm, nyx_dict_t *props[], __NYX_NULLABLE__ const nyx_opts_t *opts) |
| Allocates a new INDI / Nyx BLOB vector. | |
Nyx BLOB messages
| nyx_dict_t * nyx_blob_prop_new | ( | STR_t | name, |
| __NYX_NULLABLE__ STR_t | label, | ||
| __NYX_NULLABLE__ STR_t | format, | ||
| __NYX_ZEROABLE__ size_t | size, | ||
| __NYX_NULLABLE__ BUFF_t | buff, | ||
| bool | managed | ||
| ) |
Allocates a new INDI / Nyx BLOB property.
| name | Property name. |
| label | Property label. |
| format | Payload format. |
| size | Size of the initial payload content. |
| buff | Pointer to the initial payload content. |
| managed | If true, the provided buffer is freed with this object. |
.z, the payload is automatically ZLib+Base64-compressed, otherwise, the payload is automatically Base64-encoded. | bool nyx_blob_prop_set_managed | ( | nyx_dict_t * | prop, |
| __NYX_ZEROABLE__ size_t | size, | ||
| __NYX_NULLABLE__ BUFF_t | buff | ||
| ) |
Sets the new value of the provided property object.
| prop | Property object. |
| size | Size of the new payload content. |
| buff | Pointer to the new payload content. |
true if the value was modified, false otherwise. | bool nyx_blob_prop_set_unmanaged | ( | nyx_dict_t * | prop, |
| __NYX_ZEROABLE__ size_t | size, | ||
| __NYX_NULLABLE__ BUFF_t | buff | ||
| ) |
Sets the new value of the provided property object.
| prop | Property object. |
| size | Size of the new payload content. |
| buff | Pointer to the new payload content. |
true if the value was modified, false otherwise. | void nyx_blob_prop_get | ( | const nyx_dict_t * | prop, |
| __NYX_NULLABLE__ size_t * | size, | ||
| __NYX_NULLABLE__ buff_t * | buff | ||
| ) |
Gets the current value of the provided property object.
| prop | Property object. |
| size | Size of the current payload content. |
| buff | Pointer to current new payload content. |
| nyx_dict_t * nyx_blob_vector_new | ( | STR_t | device, |
| STR_t | name, | ||
| nyx_state_t | state, | ||
| nyx_perm_t | perm, | ||
| nyx_dict_t * | props[], | ||
| __NYX_NULLABLE__ const nyx_opts_t * | opts | ||
| ) |
Allocates a new INDI / Nyx BLOB vector.
| device | Device name. |
| name | Vector name. |
| state | Vector state. |
| perm | Vector permissions. |
| props | Array of properties with NULL sentinel. |
| opts | Options (group, label, hints, timeout, message). |