Nyx Node
Loading...
Searching...
No Matches
Nyx Text messages
Collaboration diagram for Nyx Text messages:

Functions

nyx_dict_tnyx_text_prop_new (STR_t name, __NYX_NULLABLE__ STR_t label, __NYX_NULLABLE__ STR_t value)
 Allocates a new INDI / Nyx text property.
 
bool nyx_text_prop_set (nyx_dict_t *prop, __NYX_NULLABLE__ STR_t value)
 Sets the new value of the provided property object.
 
STR_t nyx_text_prop_get (const nyx_dict_t *prop)
 Gets the current value of the provided property object.
 
nyx_dict_tnyx_text_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 text vector.
 

Detailed Description

Nyx Text messages

Function Documentation

◆ nyx_text_prop_new()

nyx_dict_t * nyx_text_prop_new ( STR_t  name,
__NYX_NULLABLE__ STR_t  label,
__NYX_NULLABLE__ STR_t  value 
)

Allocates a new INDI / Nyx text property.

Parameters
nameProperty name.
labelProperty label.
valueInitial value.
Returns
The new property object.
Note
The provided C string is duplicated.

◆ nyx_text_prop_set()

bool nyx_text_prop_set ( nyx_dict_t prop,
__NYX_NULLABLE__ STR_t  value 
)

Sets the new value of the provided property object.

Parameters
propProperty object.
valueNew value.
Returns
true if the value was modified, false otherwise.
Note
The provided C string is duplicated.

◆ nyx_text_prop_get()

STR_t nyx_text_prop_get ( const nyx_dict_t prop)

Gets the current value of the provided property object.

Parameters
propProperty object.
Returns
The current value.

Definition at line 55 of file indi_text.c.

◆ nyx_text_vector_new()

nyx_dict_t * nyx_text_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 text vector.

Parameters
deviceDevice name.
nameVector name.
stateVector state.
permVector permissions.
propsArray of properties with NULL sentinel.
optsOptions (group, label, hints, timeout, message).
Returns
The new vector object.