DBusNames.watchNameOnConnection

Like g_bus_watch_name() but takes a GDBusConnection instead of a GBusType. Since 2.26

Parameters

connection DBusConnection

A GDBusConnection.

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. [allow-none]

nameVanishedHandler GBusNameVanishedCallback

Handler to invoke when name is known to not exist or NULL. [allow-none]

userData void*

User data to pass to handlers.

userDataFreeFunc GDestroyNotify

Function for freeing user_data or NULL. [allow-none]

Return Value

Type: uint

An identifier (never 0) that an be used with g_bus_unwatch_name() to stop watching the name.

Meta