Optionalcancellable: Gio.Cancellablea Gio.Cancellable or null
Optionalcallback: AsyncReadyCallback<Gio.BusType>a Gio.AsyncReadyCallback to call when the request is satisfied
Finishes an operation started with g_bus_get().
The returned object is a singleton, that is, shared with other
callers of g_bus_get() and g_bus_get_sync() for bus_type. In the
event that you need a private message bus connection, use
g_dbus_address_get_for_bus_sync() and
g_dbus_connection_new_for_address() with
G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT and
G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION flags.
Note that the returned Gio.DBusConnection object will (usually) have
the Gio.DBusConnection.exit_on_close property set to true.
a Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to g_bus_get()
Synchronously connects to the message bus specified by bus_type.
Note that the returned object may shared with other callers,
e.g. if two separate parts of a process calls this function with
the same bus_type, they will share the same object.
This is a synchronous failable function. See g_bus_get() and
g_bus_get_finish() for the asynchronous version.
The returned object is a singleton, that is, shared with other
callers of g_bus_get() and g_bus_get_sync() for bus_type. In the
event that you need a private message bus connection, use
g_dbus_address_get_for_bus_sync() and
g_dbus_connection_new_for_address() with
G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT and
G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION flags.
Note that the returned Gio.DBusConnection object will (usually) have
the Gio.DBusConnection.exit_on_close property set to true.
Optionalcancellable: Gio.Cancellablea Gio.Cancellable or null
Version of [func@Gio.bus_own_name using closures instead of callbacks for easier binding in other languages.
the type of bus to own a name on
the well-known name to own
a set of flags with ownership options
Optionalbus_acquired_closure: Closure<any, any>closure to invoke when connected to the bus of type bus_type, or NULL to ignore
Optionalname_acquired_closure: Closure<any, any>closure to invoke when name is acquired, or NULL to ignore
Optionalname_lost_closure: Closure<any, any>closure to invoke when name is lost, or NULL to ignore
Version of Gio.bus_own_name_on_connection using closures instead of callbacks for easier binding in other languages.
a bus connection
the well-known name to own
a set of flags with ownership options
Optionalname_acquired_closure: Closure<any, any>closure to invoke when name is acquired, or NULL to ignore
Optionalname_lost_closure: Closure<any, any>closure to invoke when name is lost, or NULL to ignore
Stops owning a name.
Note that there may still be D-Bus traffic to process (relating to owning and unowning the name) in the current thread-default GLib.MainContext after this function has returned. You should continue to iterate the GLib.MainContext until the GLib.DestroyNotify function passed to Gio.bus_own_name is called, in order to avoid memory leaks through callbacks queued on the GLib.MainContext after it’s stopped being iterated.
an identifier obtained from Gio.bus_own_name
Stops watching a name.
Note that there may still be D-Bus traffic to process (relating to watching
and unwatching the name) in the current thread-default GLib.MainContext after
this function has returned. You should continue to iterate the GLib.MainContext
until the GLib.DestroyNotify function passed to g_bus_watch_name() is called, in
order to avoid memory leaks through callbacks queued on the GLib.MainContext
after it’s stopped being iterated.
An identifier obtained from g_bus_watch_name()
Version of g_bus_watch_name() using closures instead of callbacks for
easier binding in other languages.
The type of bus to watch a name on.
The name (well-known or unique) to watch.
Flags from the Gio.BusNameWatcherFlags enumeration.
Optionalname_appeared_closure: Closure<any, any>GObject.Closure to invoke when name is known to exist or null.
Optionalname_vanished_closure: Closure<any, any>GObject.Closure to invoke when name is known to not exist or null.
Version of g_bus_watch_name_on_connection() using closures instead of callbacks for
easier binding in other languages.
The name (well-known or unique) to watch.
Flags from the Gio.BusNameWatcherFlags enumeration.
Optionalname_appeared_closure: Closure<any, any>GObject.Closure to invoke when name is known to exist or null.
Optionalname_vanished_closure: Closure<any, any>GObject.Closure to invoke when name is known to not exist or null.
Asynchronously connects to the message bus specified by
bus_type.When the operation is finished,
callbackwill be invoked. You can then callg_bus_get_finish()to get the result of the operation.This is an asynchronous failable function. See
g_bus_get_sync()for the synchronous version.