gobject-introspection r349 - in trunk: . giscanner tests/scanner
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r349 - in trunk: . giscanner tests/scanner
- Date: Tue, 12 Aug 2008 17:31:51 +0000 (UTC)
Author: walters
Date: Tue Aug 12 17:31:50 2008
New Revision: 349
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=349&view=rev
Log:
2008-08-12 Colin Walters <walters verbum org>
* tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
Add enum return value.
* giscanner/glibtransformer.py: Transform function return types
too.
Modified:
trunk/ChangeLog
trunk/giscanner/glibtransformer.py
trunk/tests/scanner/Foo-expected.gir
trunk/tests/scanner/foo-object.h
Modified: trunk/giscanner/glibtransformer.py
==============================================================================
--- trunk/giscanner/glibtransformer.py (original)
+++ trunk/giscanner/glibtransformer.py Tue Aug 12 17:31:50 2008
@@ -123,6 +123,7 @@
return
self._parse_parameters(func.parameters)
+ func.retval.type = self._resolve_param_type(func.retval.type)
self._add_attribute(func)
Modified: trunk/tests/scanner/Foo-expected.gir
==============================================================================
--- trunk/tests/scanner/Foo-expected.gir (original)
+++ trunk/tests/scanner/Foo-expected.gir Tue Aug 12 17:31:50 2008
@@ -252,6 +252,16 @@
</parameter>
</parameters>
</function>
+ <function name="enum_type_returnv" c:identifier="foo_enum_type_returnv">
+ <return-value>
+ <type name="EnumType" c:type="FooEnumType"/>
+ </return-value>
+ <parameters>
+ <parameter name="x">
+ <type name="int32" c:type="int"/>
+ </parameter>
+ </parameters>
+ </function>
<bitfield name="FlagsType"
c:type="FooFlagsType"
glib:type-name="FooFlagsType"
Modified: trunk/tests/scanner/foo-object.h
==============================================================================
--- trunk/tests/scanner/foo-object.h (original)
+++ trunk/tests/scanner/foo-object.h Tue Aug 12 17:31:50 2008
@@ -86,6 +86,8 @@
int foo_enum_type_method (FooEnumType foo_enum);
+FooEnumType foo_enum_type_returnv (int x);
+
typedef enum
{
FOO_FLAGS_FIRST = 1 << 0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]