summaryrefslogtreecommitdiff
path: root/tests/scanner/Foo-1.0-expected.gir
diff options
context:
space:
mode:
authorTorsten Schönfeld <kaffeetisch@gmx.de>2011-08-13 17:28:30 +0200
committerTorsten Schönfeld <kaffeetisch@gmx.de>2011-08-16 18:43:23 +0200
commit169b206cbb4b347e4b17854e8f0c62a40404f803 (patch)
tree929ddaefcedf7c9d4778ea355e58f0b1cc2f2f96 /tests/scanner/Foo-1.0-expected.gir
parent64848acb817369436d629d153c5750789c0addc3 (diff)
downloadgobject-introspection-169b206cbb4b347e4b17854e8f0c62a40404f803.tar.gz
Allow enums and bitfields to have static methods
This uses the same backcompat machinery that was introduced for static methods for non-class types, so this change does not break users of the existing presentations. New libgirepository API: g_enum_info_get_n_methods g_enum_info_get_method https://bugzilla.gnome.org/show_bug.cgi?id=656499
Diffstat (limited to 'tests/scanner/Foo-1.0-expected.gir')
-rw-r--r--tests/scanner/Foo-1.0-expected.gir37
1 files changed, 34 insertions, 3 deletions
diff --git a/tests/scanner/Foo-1.0-expected.gir b/tests/scanner/Foo-1.0-expected.gir
index f18ed56d..ffcf2167 100644
--- a/tests/scanner/Foo-1.0-expected.gir
+++ b/tests/scanner/Foo-1.0-expected.gir
@@ -186,6 +186,26 @@ and/or use gtk-doc annotations. -->
value="2"
c:identifier="FOO_ENUM_DELTA"
glib:nick="delta"/>
+ <function name="method" c:identifier="foo_enum_type_method">
+ <return-value transfer-ownership="none">
+ <type name="gint" c:type="int"/>
+ </return-value>
+ <parameters>
+ <parameter name="foo_enum" transfer-ownership="none">
+ <type name="EnumType" c:type="FooEnumType"/>
+ </parameter>
+ </parameters>
+ </function>
+ <function name="returnv" c:identifier="foo_enum_type_returnv">
+ <return-value transfer-ownership="none">
+ <type name="EnumType" c:type="FooEnumType"/>
+ </return-value>
+ <parameters>
+ <parameter name="x" transfer-ownership="none">
+ <type name="gint" c:type="int"/>
+ </parameter>
+ </parameters>
+ </function>
</enumeration>
<enumeration name="Error"
glib:type-name="FooError"
@@ -204,6 +224,11 @@ and/or use gtk-doc annotations. -->
value="2"
c:identifier="FOO_ERROR_UGLY"
glib:nick="ugly"/>
+ <function name="quark" c:identifier="foo_error_quark">
+ <return-value transfer-ownership="none">
+ <type name="GLib.Quark" c:type="GQuark"/>
+ </return-value>
+ </function>
</enumeration>
<union name="Event" c:type="FooEvent">
<field name="type" writable="1">
@@ -954,7 +979,9 @@ exposed to language bindings.</doc>
</parameter>
</parameters>
</function>
- <function name="enum_type_method" c:identifier="foo_enum_type_method">
+ <function name="enum_type_method"
+ c:identifier="foo_enum_type_method"
+ moved-to="EnumType.method">
<return-value transfer-ownership="none">
<type name="gint" c:type="int"/>
</return-value>
@@ -964,7 +991,9 @@ exposed to language bindings.</doc>
</parameter>
</parameters>
</function>
- <function name="enum_type_returnv" c:identifier="foo_enum_type_returnv">
+ <function name="enum_type_returnv"
+ c:identifier="foo_enum_type_returnv"
+ moved-to="EnumType.returnv">
<return-value transfer-ownership="none">
<type name="EnumType" c:type="FooEnumType"/>
</return-value>
@@ -974,7 +1003,9 @@ exposed to language bindings.</doc>
</parameter>
</parameters>
</function>
- <function name="error_quark" c:identifier="foo_error_quark">
+ <function name="error_quark"
+ c:identifier="foo_error_quark"
+ moved-to="Error.quark">
<return-value transfer-ownership="none">
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>