Previous: , Up: STClient: Consuming a Service   [Contents]


B.8.2.4 Remote Resource Access

Gate on st_client_is_ready before using mirrors.

Function: const GPtrArray * st_client_get_inputs (STClient *self)

Reads the mirrored inputs.

self

Client.

Returns: Borrowed array of STInput *, or empty/unavailable before ready.

Function: const GPtrArray * st_client_get_outputs (STClient *self)

Reads the mirrored outputs.

self

Client.

Returns: Borrowed array of STOutput *.

Function: GPtrArray * st_client_dup_inputs (STClient *self)

Snapshot of mirrored inputs (elements ref’d).

self

Client.

Returns: New GPtrArray (transfer full).

Function: GPtrArray * st_client_dup_outputs (STClient *self)

Snapshot of mirrored outputs (elements ref’d).

self

Client.

Returns: New GPtrArray (transfer full).

Function: const STStats * st_client_get_stats (STClient *self)

Reads mirrored stats.

self

Client.

Returns: Borrowed STStats, or NULL if unavailable.

Function: gchar * st_client_get_service_name (STClient *self)

Reads the remote service name learned at handshake.

self

Client.

Returns: Newly allocated name (transfer full), or NULL.

Function: gboolean st_client_set_output (STClient *self, const gchar *name, double value, guint64 flags)

Synchronous remote SetOutput (value + flags). An async path for the Core hot path is planned.

self

Ready client.

name

Output identifier on the peer.

value

Commanded value.

flags

Flags bitfield to apply with the write.

Returns: TRUE if the peer accepted the call.

Function: gboolean st_client_set_input (STClient *self, const gchar *name, double value, guint64 flags)

Synchronous remote SetInput (rare; used for flag writes and special cases).

self

Ready client.

name

Input identifier on the peer.

value

Value to set.

flags

Flags bitfield to apply.

Returns: TRUE if the peer accepted the call.


Previous: Signals, Up: STClient: Consuming a Service   [Contents]