DBusNames.watchNameOnConnection

Like Bus.watchName but takes a gio.DBusConnection instead of a GBusType

Parameters

connection DBusConnection
name string

The name (well-known or unique) to watch.

flags GBusNameWatcherFlags

Flags from the GBusNameWatcherFlags enumeration.

nameAppearedHandler GBusNameAppearedCallback

Handler to invoke when name is known to exist or NULL.

nameVanishedHandler GBusNameVanishedCallback

Handler to invoke when name is known to not exist 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 can be used with Bus.unwatchName to stop watching the name.

Meta

Since

2.26