GDBusConnection* g_bus_get_sync ( GBusType bus_type, GCancellable* cancellable, GError** error )
Synchronously connects to the message bus specified by
Note that the returned object may shared with other callers,
e.g. if two separate parts of a process calls this function with
bus_type, they will share the same object.
This is a synchronous failable function. See
g_bus_get_finish() for the asynchronous version.
The returned object is a singleton, that is, shared with other
bus_type. In the
event that you need a private message bus connection, use
Note that the returned
GDBusConnection object will (usually) have
GDBusConnection:exit-on-close property set to
|The caller of the function takes ownership of the data, and is responsible for freeing it.|