Function

Giodbus_address_get_for_bus_sync

Declaration [src]

gchar*
g_dbus_address_get_for_bus_sync (
  GBusType bus_type,
  GCancellable* cancellable,
  GError** error
)

Description [src]

Synchronously looks up the D-Bus address for the well-known message bus instance specified by bus_type. This may involve using various platform specific mechanisms.

The returned address will be in the D-Bus address format.

Available since:2.26

Parameters

bus_type GBusType
 

A GBusType.

cancellable GCancellable
 

A GCancellable or NULL.

 The argument can be NULL.
 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gchar*
 

A valid D-Bus address string for bus_type or NULL if error is set.

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.