Version of g_bus_own_name
using closures instead of callbacks for easier binding in other languages.
bus_type |
the type of bus to own a name on |
name |
the well-known name to own |
flags |
a set of flags from the BusNameOwnerFlags enumeration |
bus_acquired_closure |
Closure to invoke when connected to the bus of type |
name_acquired_closure |
Closure to invoke when |
name_lost_closure |
Closure to invoke when |
an identifier (never 0) that an be used with unown_name to stop owning the name. |