GBusNameVanishedCallback: document NULL connection

@connection can be NULL for this callback.  Document this possibility
and describe the circumstances.

https://bugzilla.gnome.org/show_bug.cgi?id=686231
This commit is contained in:
Ryan Lortie 2012-10-16 12:29:22 -04:00
parent 212ffcc574
commit 654bfcb7ce

View File

@ -49,12 +49,17 @@ typedef void (*GBusNameAppearedCallback) (GDBusConnection *connection,
/** /**
* GBusNameVanishedCallback: * GBusNameVanishedCallback:
* @connection: The #GDBusConnection the name is being watched on. * @connection: The #GDBusConnection the name is being watched on, or
* %NULL.
* @name: The name being watched. * @name: The name being watched.
* @user_data: User data passed to g_bus_watch_name(). * @user_data: User data passed to g_bus_watch_name().
* *
* Invoked when the name being watched is known not to have to have a owner. * Invoked when the name being watched is known not to have to have a owner.
* *
* This is also invoked when the #GDBusConection on which the watch was
* established has been closed. In that case, @connection will be
* %NULL.
*
* Since: 2.26 * Since: 2.26
*/ */
typedef void (*GBusNameVanishedCallback) (GDBusConnection *connection, typedef void (*GBusNameVanishedCallback) (GDBusConnection *connection,