diff options
author | Colin Walters <walters@verbum.org> | 2009-02-19 17:16:17 (GMT) |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2009-03-16 18:05:23 (GMT) |
commit | 6531a094d73703c0c16777bdc82252688d1c7d51 (patch) | |
tree | ddcb4921fc322d27381e90060f2e2776f4dfada7 /tests/scanner/annotation-1.0-expected.gir | |
parent | 90526643ceb248c56e40f5b6755c3cbb91c3857c (diff) |
Bug 565147 - Add (type) annotation to override the C type definition
We previously supported (type) on signals only, extend it to all cases.
This is useful for a few cases where libraries use a superclass like GtkWidget*
for C convenience, where the actual type is a subclass.
Diffstat (limited to 'tests/scanner/annotation-1.0-expected.gir')
-rw-r--r-- | tests/scanner/annotation-1.0-expected.gir | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/scanner/annotation-1.0-expected.gir b/tests/scanner/annotation-1.0-expected.gir index 1af7271..c37d2d4 100644 --- a/tests/scanner/annotation-1.0-expected.gir +++ b/tests/scanner/annotation-1.0-expected.gir @@ -493,6 +493,11 @@ known by GObject as it's only marked as G_TYPE_POINTER"> </array> </field> </record> + <function name="get_source_file" c:identifier="annotation_get_source_file"> + <return-value transfer-ownership="full" doc="Source file"> + <type name="filename" c:type="char*"/> + </return-value> + </function> <function name="init" c:identifier="annotation_init"> <return-value transfer-ownership="none"> <type name="none" c:type="void"/> @@ -529,6 +534,16 @@ known by GObject as it's only marked as G_TYPE_POINTER"> </parameter> </parameters> </function> + <function name="set_source_file" c:identifier="annotation_set_source_file"> + <return-value transfer-ownership="none"> + <type name="none" c:type="void"/> + </return-value> + <parameters> + <parameter name="fname" transfer-ownership="none" doc="Source file"> + <type name="filename" c:type="char*"/> + </parameter> + </parameters> + </function> <function name="string_zero_terminated" c:identifier="annotation_string_zero_terminated"> <return-value transfer-ownership="none" doc="The return value"> |