Next: , Previous: , Up: STOutput: The Actuator Abstraction   [Contents]


B.5.2 STOutput Metadata Accessors

Function: const char * st_output_get_name (const STOutput *self)

Reads the identifier.

self

The output.

Returns: Borrowed name.

Function: char * st_output_dup_name (const STOutput *self)

Thread-safe copy of the identifier.

self

The output.

Returns: Newly allocated name (transfer full).

Function: gboolean st_output_set_name (STOutput *self, const char *name, GError **error)

Renames the output.

self

The output.

name

New identifier.

error

Filled on failure.

Returns: TRUE on success.

Function: const char * st_output_get_description (const STOutput *self)

Reads the description.

self

The output.

Returns: Borrowed description.

Function: char * st_output_dup_description (const STOutput *self)

Thread-safe copy of the description.

self

The output.

Returns: Newly allocated description (transfer full).

Function: gboolean st_output_set_description (STOutput *self, const char *description, GError **error)

Updates the description.

self

The output.

description

New text.

error

Filled on failure.

Returns: TRUE on success.

Function: STUnit st_output_get_unit (const STOutput *self)

Reads the unit.

self

The output.

Returns: Current STUnit.

Function: gboolean st_output_set_unit (STOutput *self, STUnit unit, GError **error)

Changes the unit.

self

The output.

unit

New enumerator.

error

Filled on failure.

Returns: TRUE on success.


Next: Value and State Control, Previous: STOutput Lifecycle Management, Up: STOutput: The Actuator Abstraction   [Contents]