Up: STMDNSService: Service Representation   [Contents]


B.6.1.1 STMDNSService Property Accessors

Borrowed get_* vs dup_* (transfer full) follow the I/O pattern. Setters update the property and queue notify.

Function: const gchar * st_mdns_service_get_name (const STMDNSService *self)

Reads the service instance name.

self

Service object.

Returns: Borrowed service instance name string.

Function: gchar * st_mdns_service_dup_name (const STMDNSService *self)

Thread-safe copy of the service instance name.

self

Service object.

Returns: Newly allocated string (transfer full).

Function: void st_mdns_service_set_name (STMDNSService *self, const gchar *name)

Updates the service instance name.

self

Service object.

name

New service instance name.

Returns: Nothing.

Function: const gchar * st_mdns_service_get_mdns_type (const STMDNSService *self)

Reads the mdns type string.

self

Service object.

Returns: Borrowed mdns type string string.

Function: gchar * st_mdns_service_dup_mdns_type (const STMDNSService *self)

Thread-safe copy of the mdns type string.

self

Service object.

Returns: Newly allocated string (transfer full).

Function: void st_mdns_service_set_mdns_type (STMDNSService *self, const gchar *type)

Updates the mdns type string.

self

Service object.

type

New mdns type string.

Returns: Nothing.

Function: const gchar * st_mdns_service_get_host (const STMDNSService *self)

Reads the hostname.

self

Service object.

Returns: Borrowed hostname string.

Function: gchar * st_mdns_service_dup_host (const STMDNSService *self)

Thread-safe copy of the hostname.

self

Service object.

Returns: Newly allocated string (transfer full).

Function: void st_mdns_service_set_host (STMDNSService *self, const gchar *host)

Updates the hostname.

self

Service object.

host

New hostname.

Returns: Nothing.

Function: const gchar * st_mdns_service_get_address (const STMDNSService *self)

Reads the address string.

self

Service object.

Returns: Borrowed address string string.

Function: gchar * st_mdns_service_dup_address (const STMDNSService *self)

Thread-safe copy of the address string.

self

Service object.

Returns: Newly allocated string (transfer full).

Function: void st_mdns_service_set_address (STMDNSService *self, const gchar *address)

Updates the address string.

self

Service object.

address

New address string.

Returns: Nothing.

Function: guint16 st_mdns_service_get_port (const STMDNSService *self)

Reads the service port.

self

Service object.

Returns: Port number.

Function: void st_mdns_service_set_port (STMDNSService *self, guint16 port)

Updates the service port.

self

Service object.

port

New port.

Returns: Nothing.

Function: gint st_mdns_service_get_proto (const STMDNSService *self)

Reads the Avahi protocol field.

self

Service object.

Returns: Protocol constant.

Function: void st_mdns_service_set_proto (STMDNSService *self, gint proto)

Updates the protocol field.

self

Service object.

proto

Avahi protocol constant.

Returns: Nothing.

Function: gint st_mdns_service_get_iface (const STMDNSService *self)

Reads the interface index.

self

Service object.

Returns: Interface index.

Function: void st_mdns_service_set_iface (STMDNSService *self, gint iface)

Updates the interface index.

self

Service object.

iface

Interface index.

Returns: Nothing.

Function: gint st_mdns_service_compare (const STMDNSService *self, const STMDNSService *other)

Compares two service descriptors (ordering suitable for sorting).

self

Left operand.

other

Right operand.

Returns: Negative, zero, or positive like strcmp.


Up: STMDNSService: Service Representation   [Contents]