gobject-introspection r739 - trunk/tests/scanner
- From: jobi svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r739 - trunk/tests/scanner
- Date: Fri, 17 Oct 2008 10:08:46 +0000 (UTC)
Author: jobi
Date: Fri Oct 17 10:08:46 2008
New Revision: 739
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=739&view=rev
Log:
Forgot these files
Added:
trunk/tests/scanner/DrawableAdditions.xml
trunk/tests/scanner/drawable-injected-1.0-expected.gir
Added: trunk/tests/scanner/DrawableAdditions.xml
==============================================================================
--- (empty file)
+++ trunk/tests/scanner/DrawableAdditions.xml Fri Oct 17 10:08:46 2008
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<injections 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">
+ <inject path="namespace/class[ name='TestDrawable']">
+ <method name="get_width" c:identifier="girepo_test_drawable_get_width">
+ <return-value>
+ <type name="int" c:type="gint"/>
+ </return-value>
+ </method>
+ </inject>
+</injections>
Added: trunk/tests/scanner/drawable-injected-1.0-expected.gir
==============================================================================
--- (empty file)
+++ trunk/tests/scanner/drawable-injected-1.0-expected.gir Fri Oct 17 10:08:46 2008
@@ -0,0 +1,71 @@
+<?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"/>
+ <include name="utility" version="1.0"/>
+ <namespace name="drawable" version="1.0" shared-library="drawable">
+ <class name="TestDrawable"
+ c:type="TestDrawable"
+ parent="GObject.Object"
+ glib:type-name="TestDrawable"
+ glib:get-type="test_drawable_get_type">
+ <method name="do_foo" c:identifier="test_drawable_do_foo">
+ <return-value>
+ <type name="none" c:type="void"/>
+ </return-value>
+ <parameters>
+ <parameter name="x">
+ <type name="int" c:type="int"/>
+ </parameter>
+ </parameters>
+ </method>
+ <method name="get_origin" c:identifier="test_drawable_get_origin">
+ <return-value>
+ <type name="none" c:type="void"/>
+ </return-value>
+ <parameters>
+ <parameter name="x" direction="out">
+ <type name="int" c:type="int*"/>
+ </parameter>
+ <parameter name="y" direction="out">
+ <type name="int" c:type="int*"/>
+ </parameter>
+ </parameters>
+ </method>
+ <method name="get_size" c:identifier="test_drawable_get_size">
+ <return-value>
+ <type name="none" c:type="void"/>
+ </return-value>
+ <parameters>
+ <parameter name="width" direction="out">
+ <type name="uint" c:type="guint*"/>
+ </parameter>
+ <parameter name="height" direction="out">
+ <type name="uint" c:type="guint*"/>
+ </parameter>
+ </parameters>
+ </method>
+ <method name="get_width" c:identifier="girepo_test_drawable_get_width">
+ <return-value>
+ <type name="int" c:type="gint"/>
+ </return-value>
+ </method>
+ <field name="parent_instance">
+ <type name="GObject.Object" c:type="GObject"/>
+ </field>
+ </class>
+ <record name="TestDrawableClass" c:type="TestDrawableClass">
+ <field name="parent_class">
+ <type name="GObject.Class" c:type="GObjectClass"/>
+ </field>
+ </record>
+ <record name="TestPixmapObjectClass" c:type="_TestPixmapObjectClass">
+ <field name="parent_class">
+ <type name="TestDrawableClass" c:type="TestDrawableClass"/>
+ </field>
+ </record>
+ </namespace>
+</repository>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]