From 04969571bb9dd0f9415ca9cd2c3fd360e3f7f159 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 30 Mar 2011 19:52:31 +0200 Subject: [PATCH] [gi] Add missing allow-none annotations to Gio --- gio/gdbusproxy.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/gio/gdbusproxy.c b/gio/gdbusproxy.c index e0996e114..76397b4b8 100644 --- a/gio/gdbusproxy.c +++ b/gio/gdbusproxy.c @@ -659,7 +659,7 @@ g_dbus_proxy_get_cached_property (GDBusProxy *proxy, * g_dbus_proxy_set_cached_property: * @proxy: A #GDBusProxy * @property_name: Property name. - * @value: Value for the property or %NULL to remove it from the cache. + * @value: (allow-none): Value for the property or %NULL to remove it from the cache. * * If @value is not %NULL, sets the cached value for the property with * name @property_name to the value in @value. @@ -1662,8 +1662,8 @@ initable_iface_init (GInitableIface *initable_iface) * g_dbus_proxy_new: * @connection: A #GDBusConnection. * @flags: Flags used when constructing the proxy. - * @info: A #GDBusInterfaceInfo specifying the minimal interface that @proxy conforms to or %NULL. - * @name: A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. + * @info: (allow-none): A #GDBusInterfaceInfo specifying the minimal interface that @proxy conforms to or %NULL. + * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. * @object_path: An object path. * @interface_name: A D-Bus interface name. * @cancellable: A #GCancellable or %NULL. @@ -1832,7 +1832,7 @@ g_dbus_proxy_new_sync (GDBusConnection *connection, * g_dbus_proxy_new_for_bus: * @bus_type: A #GBusType. * @flags: Flags used when constructing the proxy. - * @info: A #GDBusInterfaceInfo specifying the minimal interface that @proxy conforms to or %NULL. + * @info: (allow-none): A #GDBusInterfaceInfo specifying the minimal interface that @proxy conforms to or %NULL. * @name: A bus name (well-known or unique). * @object_path: An object path. * @interface_name: A D-Bus interface name. @@ -1897,7 +1897,8 @@ g_dbus_proxy_new_for_bus_finish (GAsyncResult *res, * g_dbus_proxy_new_for_bus_sync: * @bus_type: A #GBusType. * @flags: Flags used when constructing the proxy. - * @info: A #GDBusInterfaceInfo specifying the minimal interface that @proxy conforms to or %NULL. + * @info: (allow-none): A #GDBusInterfaceInfo specifying the minimal interface + * that @proxy conforms to or %NULL. * @name: A bus name (well-known or unique). * @object_path: An object path. * @interface_name: A D-Bus interface name. @@ -2124,7 +2125,7 @@ g_dbus_proxy_get_interface_info (GDBusProxy *proxy) /** * g_dbus_proxy_set_interface_info: * @proxy: A #GDBusProxy - * @info: Minimum interface this proxy conforms to or %NULL to unset. + * @info: (allow-none): Minimum interface this proxy conforms to or %NULL to unset. * * Ensure that interactions with @proxy conform to the given * interface. For example, when completing a method call, if the type @@ -2262,7 +2263,7 @@ get_destination_for_call (GDBusProxy *proxy) * g_dbus_proxy_call: * @proxy: A #GDBusProxy. * @method_name: Name of method to invoke. - * @parameters: A #GVariant tuple with parameters for the signal or %NULL if not passing parameters. + * @parameters: (allow-none): A #GVariant tuple with parameters for the signal or %NULL if not passing parameters. * @flags: Flags from the #GDBusCallFlags enumeration. * @timeout_msec: The timeout in milliseconds (with %G_MAXINT meaning * "infinite") or -1 to use the proxy default timeout. @@ -2430,7 +2431,8 @@ g_dbus_proxy_call_finish (GDBusProxy *proxy, * g_dbus_proxy_call_sync: * @proxy: A #GDBusProxy. * @method_name: Name of method to invoke. - * @parameters: A #GVariant tuple with parameters for the signal or %NULL if not passing parameters. + * @parameters: (allow-none): A #GVariant tuple with parameters for the signal + * or %NULL if not passing parameters. * @flags: Flags from the #GDBusCallFlags enumeration. * @timeout_msec: The timeout in milliseconds (with %G_MAXINT meaning * "infinite") or -1 to use the proxy default timeout.