The type of bus to own a name on.
The well-known name to own.
A set of flags from the GBusNameOwnerFlags enumeration.
Handler to invoke when connected to the bus of type bus_type or NULL. [allow-none]
Handler to invoke when name is acquired or NULL. [allow-none]
Handler to invoke when name is lost or NULL. [allow-none]
User data to pass to handlers.
Function for freeing user_data or NULL. [allow-none]
An identifier (never 0) that an be used with g_bus_unown_name() to stop owning the name.
Starts acquiring name on the bus specified by bus_type and calls name_acquired_handler and name_lost_handler when the name is acquired respectively lost. Callbacks will be invoked in the thread-default main loop of the thread you are calling this function from. You are guaranteed that one of the name_acquired_handler and name_lost_handler callbacks will be invoked after calling this function - there are three Since 2.26