DBusNames.ownNameOnConnection

Like g_bus_own_name() but takes a #GDBusConnection instead of a #GBusType.

Parameters

connection DBusConnection

a #GDBusConnection

name string

the well-known name to own

flags GBusNameOwnerFlags

a set of flags from the #GBusNameOwnerFlags enumeration

nameAcquiredHandler GBusNameAcquiredCallback

handler to invoke when @name is acquired or %NULL

nameLostHandler GBusNameLostCallback

handler to invoke when @name is lost or %NULL

userData void*

user data to pass to handlers

userDataFreeFunc GDestroyNotify

function for freeing @user_data or %NULL

Return Value

Type: uint

an identifier (never 0) that an be used with g_bus_unown_name() to stop owning the name

Meta

Since

2.26