diff options
author | Andreas Rottmann <a.rottmann@gmx.at> | 2009-03-23 22:19:24 (GMT) |
---|---|---|
committer | Andreas Rottmann <a.rottmann@gmx.at> | 2009-03-23 22:19:24 (GMT) |
commit | cf7621f31c6b3eaf29e1da82631a9404f8b1c036 (patch) | |
tree | 21501ed5345aa84b289046927632531d23135f6f /tests/scanner/annotation-1.0-expected.tgir | |
parent | bec176d20df2f0e25a0f3dc84a3dbe3edeecd65f (diff) |
Bug 574284 - Add support for a 'closure' and 'destroy' annotations
This allows to annotate cases where the heuristics don't work.
TODO: According to Juerbi, there are cases where two callbacks refer
to the same user_data, which is prohibited by the current
implementation.
Signed-off-by: Andreas Rottmann <a.rottmann@gmx.at>
Diffstat (limited to 'tests/scanner/annotation-1.0-expected.tgir')
-rw-r--r-- | tests/scanner/annotation-1.0-expected.tgir | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/scanner/annotation-1.0-expected.tgir b/tests/scanner/annotation-1.0-expected.tgir index 0d88c47..46af2ec 100644 --- a/tests/scanner/annotation-1.0-expected.tgir +++ b/tests/scanner/annotation-1.0-expected.tgir @@ -47,6 +47,16 @@ </parameter> </parameters> </callback> + <callback name="NotifyFunc"> + <return-value transfer-ownership="none"> + <type name="none"/> + </return-value> + <parameters> + <parameter name="data" transfer-ownership="none" closure="0"> + <type name="any"/> + </parameter> + </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"> @@ -384,6 +394,22 @@ </array> </field> </record> + <function name="custom_destroy" c:identifier="annotation_custom_destroy"> + <return-value transfer-ownership="none"> + <type name="none"/> + </return-value> + <parameters> + <parameter name="callback" transfer-ownership="none" closure="2" destroy="1"> + <type name="Callback"/> + </parameter> + <parameter name="destroy" transfer-ownership="none"> + <type name="NotifyFunc"/> + </parameter> + <parameter name="data" transfer-ownership="none"> + <type name="any"/> + </parameter> + </parameters> + </function> <function name="get_source_file" c:identifier="annotation_get_source_file"> <return-value transfer-ownership="full"> <type name="filename"/> |