Add expected girs
authorColin Walters <walters@src.gnome.org>
Thu, 13 Nov 2008 20:19:27 +0000 (20:19 +0000)
committerColin Walters <walters@src.gnome.org>
Thu, 13 Nov 2008 20:19:27 +0000 (20:19 +0000)
svn path=/trunk/; revision=914

tests/scanner/BarApp-1.0-expected.gir [new file with mode: 0644]
tests/scanner/BarApp-1.0-expected.tgir [new file with mode: 0644]

diff --git a/tests/scanner/BarApp-1.0-expected.gir b/tests/scanner/BarApp-1.0-expected.gir
new file mode 100644 (file)
index 0000000..b46c567
--- /dev/null
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<repository version="1.0"
+            xmlns="http://www.gtk.org/introspection/core/1.0"
+            xmlns:c="http://www.gtk.org/introspection/c/1.0"
+            xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
+  <include name="GLib" version="2.0"/>
+  <include name="GObject" version="2.0"/>
+  <namespace name="BarApp" version="1.0" shared-library="">
+    <class name="Baz"
+           c:type="BarBaz"
+           parent="GObject.Object"
+           glib:type-name="BarBaz"
+           glib:get-type="bar_baz_get_type">
+      <field name="parent_instance">
+        <type name="GObject.Object" c:type="GObject"/>
+      </field>
+    </class>
+    <record name="BazClass" c:type="BarBazClass">
+      <field name="parent_class">
+        <type name="GObject.ObjectClass" c:type="GObjectClass"/>
+      </field>
+    </record>
+    <function name="func" c:identifier="barapp_func">
+      <return-value transfer-ownership="none">
+        <type name="none" c:type="void"/>
+      </return-value>
+    </function>
+    <function name="func2" c:identifier="barapp_func2">
+      <return-value transfer-ownership="none">
+        <type name="none" c:type="void"/>
+      </return-value>
+      <parameters>
+        <parameter name="x" transfer-ownership="none">
+          <type name="int" c:type="int"/>
+        </parameter>
+        <parameter name="y" transfer-ownership="none">
+          <type name="double" c:type="double"/>
+        </parameter>
+      </parameters>
+    </function>
+  </namespace>
+</repository>
diff --git a/tests/scanner/BarApp-1.0-expected.tgir b/tests/scanner/BarApp-1.0-expected.tgir
new file mode 100644 (file)
index 0000000..3de9dad
--- /dev/null
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+<repository version="1.0"
+            xmlns="http://www.gtk.org/introspection/core/1.0"
+            xmlns:c="http://www.gtk.org/introspection/c/1.0"
+            xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
+  <include name="GObject" version="2.0"/>
+  <include name="GLib" version="2.0"/>
+  <namespace name="BarApp" version="1.0" shared-library="">
+    <class name="Baz" parent="GObject.Object" glib:type-name="BarBaz" glib:get-type="bar_baz_get_type">
+      <field name="parent_instance">
+        <type name="GObject.Object"/>
+      </field>
+    </class>
+    <record name="BazClass">
+      <field name="parent_class">
+        <type name="GObject.ObjectClass"/>
+      </field>
+    </record>
+    <function name="func" c:identifier="barapp_func">
+      <return-value transfer-ownership="none">
+        <type name="none"/>
+      </return-value>
+    </function>
+    <function name="func2" c:identifier="barapp_func2">
+      <return-value transfer-ownership="none">
+        <type name="none"/>
+      </return-value>
+      <parameters>
+        <parameter name="x" transfer-ownership="none">
+          <type name="int"/>
+        </parameter>
+        <parameter name="y" transfer-ownership="none">
+          <type name="double"/>
+        </parameter>
+      </parameters>
+    </function>
+  </namespace>
+</repository>