diff options
author | Colin Walters <walters@verbum.org> | 2010-10-26 11:12:26 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-11-12 16:00:10 -0500 |
commit | c8940a11562fd7b888595c6298e39836192fa3d7 (patch) | |
tree | 573d0afbceecc8bd0360e79b11666095470bd8d8 /tests | |
parent | e876ad4fe073de44fc809400b166d6c4726f08f4 (diff) | |
download | gobject-introspection-c8940a11562fd7b888595c6298e39836192fa3d7.tar.gz |
Add support for gunichar in typelib
Some API such as gtk_text_iter_get_char returns an individual
"gunichar"; we should support this.
https://bugzilla.gnome.org/show_bug.cgi?id=633197
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scanner/Regress-1.0-expected.gir | 10 | ||||
-rw-r--r-- | tests/scanner/regress.c | 5 | ||||
-rw-r--r-- | tests/scanner/regress.h | 1 |
3 files changed, 16 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir index 36a7b0d9..9f112f49 100644 --- a/tests/scanner/Regress-1.0-expected.gir +++ b/tests/scanner/Regress-1.0-expected.gir @@ -2274,6 +2274,16 @@ call and can be released on return.</doc> </parameter> </parameters> </function> + <function name="test_unichar" c:identifier="regress_test_unichar"> + <return-value transfer-ownership="none"> + <type name="gunichar" c:type="gunichar"/> + </return-value> + <parameters> + <parameter name="in" transfer-ownership="none"> + <type name="gunichar" c:type="gunichar"/> + </parameter> + </parameters> + </function> <function name="test_ushort" c:identifier="regress_test_ushort"> <return-value transfer-ownership="none"> <type name="gushort" c:type="gushort"/> diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c index 40562f55..9f225961 100644 --- a/tests/scanner/regress.c +++ b/tests/scanner/regress.c @@ -148,6 +148,11 @@ regress_test_double (gdouble in) return in; } +gunichar +regress_test_unichar (gunichar in) +{ + return in; +} time_t regress_test_timet (time_t in) diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h index 6d729f1e..9b39bd3c 100644 --- a/tests/scanner/regress.h +++ b/tests/scanner/regress.h @@ -30,6 +30,7 @@ gssize regress_test_ssize (gssize in); gsize regress_test_size (gsize in); gfloat regress_test_float (gfloat in); gdouble regress_test_double (gdouble in); +gunichar regress_test_unichar (gunichar in); time_t regress_test_timet (time_t in); GType regress_test_gtype (GType in); |