busOwnNameOnConnection

Version of gio.global.busOwnNameOnConnection using closures instead of callbacks for easier binding in other languages.

Parameters

connection gio.dbus_connection.DBusConnection

a #GDBusConnection

name string

the well-known name to own

flags gio.types.BusNameOwnerFlags

a set of flags from the #GBusNameOwnerFlags enumeration

nameAcquiredClosure gobject.closure.Closure

#GClosure to invoke when name is acquired or null

nameLostClosure gobject.closure.Closure

#GClosure to invoke when name is lost or null

Return Value

Type: uint

an identifier (never 0) that can be used with gio.global.busUnownName to stop owning the name.