[gobject-introspection] tests: Add the scope for callbacks in expected girs



commit be00b8746769cf4ff8130df1b99cf976884fdde5
Author: Johan Bilien <jobi litl com>
Date:   Mon Jan 18 10:03:11 2010 -0500

    tests: Add the scope for callbacks in expected girs
    
    following my previous patch to systematically specify the scope in
    callbacks. Had forgotten to add these.

 tests/scanner/foo-1.0-expected.gir      |   10 +++++-----
 tests/scanner/foo-1.0-expected.tgir     |    2 +-
 tests/scanner/utility-1.0-expected.gir  |    7 +++++--
 tests/scanner/utility-1.0-expected.tgir |    4 ++--
 4 files changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/tests/scanner/foo-1.0-expected.gir b/tests/scanner/foo-1.0-expected.gir
index 7c7cc93..bf17146 100644
--- a/tests/scanner/foo-1.0-expected.gir
+++ b/tests/scanner/foo-1.0-expected.gir
@@ -739,7 +739,7 @@ uses a C sugar return type.">
         <parameter name="data" transfer-ownership="none">
           <type name="any" c:type="gpointer"/>
         </parameter>
-        <parameter name="destroy" transfer-ownership="none">
+        <parameter name="destroy" transfer-ownership="none" scope="call">
           <type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
         </parameter>
       </parameters>
@@ -878,7 +878,7 @@ uses a C sugar return type.">
         <parameter name="i" transfer-ownership="none">
           <type name="int" c:type="gint"/>
         </parameter>
-        <parameter name="callback" transfer-ownership="none">
+        <parameter name="callback" transfer-ownership="none" scope="call">
           <type name="VarargsCallback" c:type="FooVarargsCallback"/>
         </parameter>
       </parameters>
@@ -889,7 +889,7 @@ uses a C sugar return type.">
         <type name="none" c:type="void"/>
       </return-value>
       <parameters>
-        <parameter name="callback" transfer-ownership="none">
+        <parameter name="callback" transfer-ownership="none" scope="call">
           <type name="VarargsCallback" c:type="FooVarargsCallback"/>
         </parameter>
       </parameters>
@@ -900,10 +900,10 @@ uses a C sugar return type.">
         <type name="none" c:type="void"/>
       </return-value>
       <parameters>
-        <parameter name="callback" transfer-ownership="none">
+        <parameter name="callback" transfer-ownership="none" scope="call">
           <type name="VarargsCallback" c:type="FooVarargsCallback"/>
         </parameter>
-        <parameter name="callback2" transfer-ownership="none">
+        <parameter name="callback2" transfer-ownership="none" scope="call">
           <type name="VarargsCallback" c:type="FooVarargsCallback"/>
         </parameter>
       </parameters>
diff --git a/tests/scanner/foo-1.0-expected.tgir b/tests/scanner/foo-1.0-expected.tgir
index 4afb3ce..959e99f 100644
--- a/tests/scanner/foo-1.0-expected.tgir
+++ b/tests/scanner/foo-1.0-expected.tgir
@@ -596,7 +596,7 @@
         <parameter name="data" transfer-ownership="none">
           <type name="any"/>
         </parameter>
-        <parameter name="destroy" transfer-ownership="none">
+        <parameter name="destroy" transfer-ownership="none" scope="call">
           <type name="GLib.DestroyNotify"/>
         </parameter>
       </parameters>
diff --git a/tests/scanner/utility-1.0-expected.gir b/tests/scanner/utility-1.0-expected.gir
index a597d5d..528d420 100644
--- a/tests/scanner/utility-1.0-expected.gir
+++ b/tests/scanner/utility-1.0-expected.gir
@@ -82,7 +82,7 @@ and/or use gtk-doc annotations.  -->
           <parameter name="user_data" transfer-ownership="none">
             <type name="any" c:type="gpointer"/>
           </parameter>
-          <parameter name="destroy" transfer-ownership="none">
+          <parameter name="destroy" transfer-ownership="none" scope="call">
             <type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
           </parameter>
         </parameters>
@@ -149,7 +149,10 @@ and/or use gtk-doc annotations.  -->
         <parameter name="path" transfer-ownership="none">
           <type name="utf8" c:type="char*"/>
         </parameter>
-        <parameter name="func" transfer-ownership="none" closure="2">
+        <parameter name="func"
+                   transfer-ownership="none"
+                   scope="call"
+                   closure="2">
           <type name="FileFunc" c:type="UtilityFileFunc"/>
         </parameter>
         <parameter name="user_data" transfer-ownership="none">
diff --git a/tests/scanner/utility-1.0-expected.tgir b/tests/scanner/utility-1.0-expected.tgir
index a58a132..e696d7d 100644
--- a/tests/scanner/utility-1.0-expected.tgir
+++ b/tests/scanner/utility-1.0-expected.tgir
@@ -60,7 +60,7 @@
           <parameter name="user_data" transfer-ownership="none">
             <type name="any"/>
           </parameter>
-          <parameter name="destroy" transfer-ownership="none">
+          <parameter name="destroy" transfer-ownership="none" scope="call">
             <type name="GLib.DestroyNotify"/>
           </parameter>
         </parameters>
@@ -111,7 +111,7 @@
         <parameter name="path" transfer-ownership="none">
           <type name="utf8"/>
         </parameter>
-        <parameter name="func" transfer-ownership="none" closure="2">
+        <parameter name="func" transfer-ownership="none" scope="call" closure="2">
           <type name="FileFunc"/>
         </parameter>
         <parameter name="user_data" transfer-ownership="none">



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