]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
rest bindings: Mark parameter as nullable
authorAdrien Bustany <abustany@gnome.org>
Wed, 10 Mar 2010 18:10:48 +0000 (15:10 -0300)
committerAdrien Bustany <abustany@gnome.org>
Wed, 10 Mar 2010 18:10:48 +0000 (15:10 -0300)
This commit marks the weak_object parameter of rest_proxy_call_run_async as
nullable.

vapi/packages/rest/rest.metadata
vapi/rest.vapi

index 3eac20f3c17e8097acc9391fe70de34a5e268c56..686040be32bf6053c314f136feb3d878b9243665 100644 (file)
@@ -19,6 +19,7 @@ rest_proxy_new_call hidden="1"
 rest_proxy_call_add_headers ellipsis="1"
 rest_proxy_call_add_params ellipsis="1"
 rest_proxy_call_async name="run_async"
+rest_proxy_call_async.weak_object nullable="1"
 rest_proxy_call_async.userdata hidden="1"
 RestProxyCallAsyncCallback.userdata hidden="1"
 RestProxyCallAsyncCallback.error nullable="1"
index a8dfaa66044759dcb2ac44f680de78528d1ac478..7d81c3239099b76af8ffec84714a1df1c1ca43e0 100644 (file)
@@ -128,7 +128,7 @@ namespace Rest {
                public void remove_param (string param);
                public bool run (out unowned GLib.MainLoop loop) throws GLib.Error;
                [CCode (cname = "rest_proxy_call_async")]
-               public bool run_async (Rest.ProxyCallAsyncCallback callback, GLib.Object weak_object) throws GLib.Error;
+               public bool run_async (Rest.ProxyCallAsyncCallback callback, GLib.Object? weak_object) throws GLib.Error;
                public void set_function (string function);
                public void set_method (string method);
                public bool sync () throws GLib.Error;