Next: , Up: STServer: Publishing a Service   [Contents]


B.8.1.1 Service Metadata

Function: const gchar * st_server_get_name (const STServer *self)

Reads the service name.

self

Server.

Returns: Borrowed name.

Function: gchar * st_server_dup_name (const STServer *self)

Thread-safe copy of the service name.

self

Server.

Returns: Newly allocated name (transfer full).

Function: gboolean st_server_set_name (STServer *self, const gchar *name, GError **error)

Renames the service.

self

Server.

name

New name.

error

Filled on failure.

Returns: TRUE on success.

Function: const STVersion * st_server_get_version (const STServer *self)

Reads the version triple.

self

Server.

Returns: Borrowed STVersion pointer.

Function: STVersion * st_server_dup_version (const STServer *self)

Copies the version triple.

self

Server.

Returns: Newly allocated STVersion (free with g_free).

Function: gboolean st_server_set_version (STServer *self, const STVersion *version, GError **error)

Updates the advertised version.

self

Server.

version

New triple.

error

Filled on failure.

Returns: TRUE on success.

Function: const GPtrArray * st_server_get_inputs (const STServer *self)

Reads the live inputs array.

self

Server.

Returns: Borrowed GPtrArray of STInput *.

Function: GPtrArray * st_server_dup_inputs (const STServer *self)

Deep-ish snapshot of inputs (new array; elements ref’d).

self

Server.

Returns: New GPtrArray (transfer full; unref with g_ptr_array_unref).

Function: gboolean st_server_set_inputs (STServer *self, GPtrArray *inputs)

Replaces the inputs array (shared ownership rules as construction).

self

Server.

inputs

New array of STInput *.

Returns: TRUE on success.

Function: const GPtrArray * st_server_get_outputs (const STServer *self)

Reads the live outputs array.

self

Server.

Returns: Borrowed GPtrArray of STOutput *.

Function: GPtrArray * st_server_dup_outputs (const STServer *self)

Snapshot of outputs (new array; elements ref’d).

self

Server.

Returns: New GPtrArray (transfer full).

Function: gboolean st_server_set_outputs (STServer *self, GPtrArray *outputs, GError *error)

Replaces the outputs array. Note the historical GError * signature (non-double pointer) in the header.

self

Server.

outputs

New array of STOutput *.

error

Optional error object pointer as declared in starter/server.h.

Returns: TRUE on success.


Next: Peers, Up: STServer: Publishing a Service   [Contents]