Nyx Node
Loading...
Searching...
No Matches
Nyx Light Message
Collaboration diagram for Nyx Light Message:

Functions

nyx_dict_tnyx_light_prop_new (STR_t name, __NYX_NULLABLE__ STR_t label, nyx_state_t value)
 Allocates a new INDI / Nyx light property.
bool nyx_light_prop_set (const nyx_dict_t *prop, nyx_state_t value)
 Sets the new value of the provided property object.
nyx_state_t nyx_light_prop_get (const nyx_dict_t *prop)
 Gets the value of the provided property object.
nyx_dict_tnyx_light_vector_new (STR_t device, STR_t name, nyx_state_t state, nyx_dict_t *props[], __NYX_NULLABLE__ const nyx_opts_t *opts)
 Allocates a new INDI / Nyx light vector.

Detailed Description

Nyx Light Message

Function Documentation

◆ nyx_light_prop_new()

nyx_dict_t * nyx_light_prop_new ( STR_t name,
__NYX_NULLABLE__ STR_t label,
nyx_state_t value )

Allocates a new INDI / Nyx light property.

Parameters
nameProperty name.
labelProperty label.
valueInitial value.
Returns
The new property object.

◆ nyx_light_prop_set()

bool nyx_light_prop_set ( const nyx_dict_t * prop,
nyx_state_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.

Definition at line 49 of file indi_light.c.

◆ nyx_light_prop_get()

nyx_state_t nyx_light_prop_get ( const nyx_dict_t * prop)

Gets the value of the provided property object.

Parameters
propProperty object.
Returns
The value.

Definition at line 56 of file indi_light.c.

◆ nyx_light_vector_new()

nyx_dict_t * nyx_light_vector_new ( STR_t device,
STR_t name,
nyx_state_t state,
nyx_dict_t * props[],
__NYX_NULLABLE__ const nyx_opts_t * opts )

Allocates a new INDI / Nyx light vector.

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