diff options
author | Colin Walters <walters@verbum.org> | 2009-02-20 02:48:51 (GMT) |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2009-03-03 22:26:37 (GMT) |
commit | d5215b23315e7c9c22c6a32218bb6f8027a9dd4c (patch) | |
tree | e8d9e360099c756677ad23a1039f4d05533008b9 /tests/scanner/annotation-1.0-expected.tgir | |
parent | 2bdd2bf9303ae0e718c00ec84078336e722138f1 (diff) |
Bug 571548 - Generic attributes
We now support an extensible mechanism where arbitrary key-value
pairs may be associated with almost all items, including objects,
methods, and properties.
These attributes appear in both the .gir and the .typelib.
Diffstat (limited to 'tests/scanner/annotation-1.0-expected.tgir')
-rw-r--r-- | tests/scanner/annotation-1.0-expected.tgir | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/scanner/annotation-1.0-expected.tgir b/tests/scanner/annotation-1.0-expected.tgir index 643ffb2..2075143 100644 --- a/tests/scanner/annotation-1.0-expected.tgir +++ b/tests/scanner/annotation-1.0-expected.tgir @@ -48,6 +48,7 @@ </parameters> </callback> <class name="Object" parent="GObject.Object" glib:type-struct="ObjectClass" glib:type-name="AnnotationObject" glib:get-type="annotation_object_get_type"> + <attribute name="org.example.Test" value="cows"/> <field name="parent_instance"> <type name="GObject.Object"/> </field> @@ -323,6 +324,12 @@ <type name="GObject.Object"/> </return-value> </method> + <method name="extra_annos" c:identifier="annotation_object_extra_annos"> + <attribute name="org.foobar" value="testvalue"/> + <return-value transfer-ownership="none"> + <type name="none"/> + </return-value> + </method> <property name="string-property" writable="1" construct="1"> <type name="utf8"/> </property> |