From: Rico Tzschichholz Date: Thu, 5 Sep 2013 08:11:13 +0000 (+0200) Subject: vapi: Some more scope=async updates X-Git-Tag: 0.21.2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14913568dad6c3bb785de5d61946bf9ffe7cc7fb;p=thirdparty%2Fvala.git vapi: Some more scope=async updates In addition to 3e20fd82c05daa60005aaff11411cd1814beb778 --- diff --git a/vapi/libgdata.vapi b/vapi/libgdata.vapi index 431f12e0c..1c540b7e2 100644 --- a/vapi/libgdata.vapi +++ b/vapi/libgdata.vapi @@ -134,10 +134,10 @@ namespace GData { public class BatchOperation : GLib.Object { [CCode (has_construct_function = false)] protected BatchOperation (); - public uint add_deletion (GData.Entry entry, GData.BatchOperationCallback callback); - public uint add_insertion (GData.Entry entry, GData.BatchOperationCallback callback); - public uint add_query (string id, GLib.Type entry_type, GData.BatchOperationCallback callback); - public uint add_update (GData.Entry entry, GData.BatchOperationCallback callback); + public uint add_deletion (GData.Entry entry, [CCode (scope = "async")] owned GData.BatchOperationCallback callback); + public uint add_insertion (GData.Entry entry, [CCode (scope = "async")] owned GData.BatchOperationCallback callback); + public uint add_query (string id, GLib.Type entry_type, [CCode (scope = "async")] owned GData.BatchOperationCallback callback); + public uint add_update (GData.Entry entry, [CCode (scope = "async")] owned GData.BatchOperationCallback callback); public unowned GData.AuthorizationDomain get_authorization_domain (); public unowned string get_feed_uri (); public unowned GData.Service get_service (); diff --git a/vapi/mx-1.0.vapi b/vapi/mx-1.0.vapi index f25950b2d..d3ccc30b5 100644 --- a/vapi/mx-1.0.vapi +++ b/vapi/mx-1.0.vapi @@ -7,7 +7,7 @@ namespace Mx { [CCode (has_construct_function = false)] public Action (); [CCode (has_construct_function = false)] - public Action.full (string name, string display_name, Mx.ActionCallbackFunc? activated_cb); + public Action.full (string name, string display_name, [CCode (scope = "async")] owned Mx.ActionCallbackFunc? activated_cb); public bool get_active (); public unowned string get_display_name (); public unowned string get_icon (); @@ -264,7 +264,7 @@ namespace Mx { [CCode (has_construct_function = false)] protected Clipboard (); public static unowned Mx.Clipboard get_default (); - public void get_text (Mx.ClipboardCallbackFunc callback); + public void get_text ([CCode (scope = "async")] owned Mx.ClipboardCallbackFunc callback); public void set_text (string text); } [CCode (cheader_filename = "mx/mx.h", type_id = "mx_combo_box_get_type ()")]