[vala] rest bindings: Mark parameter as nullable



commit c934d8305430a5b36b0a82457d44860fdb8fe270
Author: Adrien Bustany <abustany gnome org>
Date:   Wed Mar 10 15:10:48 2010 -0300

    rest bindings: Mark parameter as nullable
    
    This commit marks the weak_object parameter of rest_proxy_call_run_async as
    nullable.

 vapi/packages/rest/rest.metadata |    1 +
 vapi/rest.vapi                   |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/vapi/packages/rest/rest.metadata b/vapi/packages/rest/rest.metadata
index 3eac20f..686040b 100644
--- a/vapi/packages/rest/rest.metadata
+++ b/vapi/packages/rest/rest.metadata
@@ -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"
diff --git a/vapi/rest.vapi b/vapi/rest.vapi
index a8dfaa6..7d81c32 100644
--- a/vapi/rest.vapi
+++ b/vapi/rest.vapi
@@ -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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]