diff options
author | David Zeuthen <davidz@redhat.com> | 2010-06-15 11:01:37 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2010-06-24 11:53:18 -0400 |
commit | 11cfe386c37ced44a8e3efb5556bde3a43a11171 (patch) | |
tree | a01903a4e4596ca80c79abbc8d35c33dc665e526 /tests/scanner/annotation-1.0-expected.tgir | |
parent | 751ffa016e410a031028282e63f98a94cc444b7b (diff) | |
download | gobject-introspection-11cfe386c37ced44a8e3efb5556bde3a43a11171.tar.gz |
Allow attributes on parameters and return values
Any annotation where the key has a dot in the name will go into the
attribute list. For example
* @arg: (foo.bar baz): some arg
the parameter @arg will get the attribute with key foo.bar and value
baz. This also works for.
* Returns: (foo.bar2 baz2): the return value
Also add tests for this new feature.
See https://bugzilla.gnome.org/show_bug.cgi?id=571548
Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'tests/scanner/annotation-1.0-expected.tgir')
-rw-r--r-- | tests/scanner/annotation-1.0-expected.tgir | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/scanner/annotation-1.0-expected.tgir b/tests/scanner/annotation-1.0-expected.tgir index ba56be6e..0f8a5fe7 100644 --- a/tests/scanner/annotation-1.0-expected.tgir +++ b/tests/scanner/annotation-1.0-expected.tgir @@ -362,6 +362,22 @@ <property name="string-property" writable="1" construct="1" transfer-ownership="none"> <type name="utf8"/> </property> + <glib:signal name="attribute-signal" when="LAST"> + <return-value transfer-ownership="full"> + <attribute name="some.annotation.foo3" value="val3"/> + <type name="utf8"/> + </return-value> + <parameters> + <parameter name="arg1" transfer-ownership="none"> + <attribute name="some.annotation.foo1" value="val1"/> + <type name="utf8"/> + </parameter> + <parameter name="arg2" transfer-ownership="none"> + <attribute name="some.annotation.foo2" value="val2"/> + <type name="utf8"/> + </parameter> + </parameters> + </glib:signal> <glib:signal name="doc-empty-arg-parsing" when="LAST"> <return-value transfer-ownership="full"> <type name="none"/> @@ -407,6 +423,23 @@ </array> </field> </record> + <function name="attribute_func" c:identifier="annotation_attribute_func"> + <return-value transfer-ownership="none"> + <attribute name="yet.another.annotation" value="another_value"/> + <attribute name="some.other.annotation" value="value2"/> + <type name="int"/> + </return-value> + <parameters> + <parameter name="object" transfer-ownership="none"> + <type name="Object"/> + </parameter> + <parameter name="data" transfer-ownership="none"> + <attribute name="another.annotation" value="blahvalue"/> + <attribute name="some.annotation" value="value"/> + <type name="utf8"/> + </parameter> + </parameters> + </function> <function name="custom_destroy" c:identifier="annotation_custom_destroy"> <return-value transfer-ownership="none"> <type name="none"/> |