summaryrefslogtreecommitdiff
path: root/gir
diff options
context:
space:
mode:
authorJohan Bilien <jobi@litl.com>2010-03-01 17:32:32 -0500
committerJohan Bilien <jobi@litl.com>2010-03-01 17:32:32 -0500
commitf54d77691361fb708a01a1f237e605cbd3aedbd6 (patch)
tree9cd7a2e7c3382c21336baa13f2db198ba110c0dd /gir
parent111cdb2a94d69c6fb4d34e2677f604fcd5e88ffc (diff)
downloadgobject-introspection-f54d77691361fb708a01a1f237e605cbd3aedbd6.tar.gz
Add a test function with an out argument and some other after that
Useful to debug case https://bugzilla.gnome.org/show_bug.cgi?id=611529
Diffstat (limited to 'gir')
-rw-r--r--gir/Everything-1.0-expected.gir13
-rw-r--r--gir/everything.c13
-rw-r--r--gir/everything.h3
3 files changed, 29 insertions, 0 deletions
diff --git a/gir/Everything-1.0-expected.gir b/gir/Everything-1.0-expected.gir
index 145a9c96..9453090d 100644
--- a/gir/Everything-1.0-expected.gir
+++ b/gir/Everything-1.0-expected.gir
@@ -1220,6 +1220,19 @@ call and can be released on return.">
</parameter>
</parameters>
</function>
+ <function name="test_int_out_utf8" c:identifier="test_int_out_utf8">
+ <return-value transfer-ownership="none">
+ <type name="none" c:type="void"/>
+ </return-value>
+ <parameters>
+ <parameter name="length" direction="out" transfer-ownership="full">
+ <type name="int" c:type="int*"/>
+ </parameter>
+ <parameter name="in" transfer-ownership="none">
+ <type name="utf8" c:type="char*"/>
+ </parameter>
+ </parameters>
+ </function>
<function name="test_int_value_arg" c:identifier="test_int_value_arg">
<return-value transfer-ownership="none">
<type name="int" c:type="int"/>
diff --git a/gir/everything.c b/gir/everything.c
index f968bbeb..6c394e82 100644
--- a/gir/everything.c
+++ b/gir/everything.c
@@ -257,6 +257,19 @@ GSList *test_filename_return (void)
return filenames;
}
+/* in arguments after out arguments */
+
+/**
+ * test_int_out_utf8:
+ * @out: (out):
+ * @in:
+ */
+void
+test_int_out_utf8 (int *length, const char *in)
+{
+ *length = g_utf8_strlen(in, -1);
+}
+
/* multiple output arguments */
diff --git a/gir/everything.h b/gir/everything.h
index 8b189034..84e2fe2a 100644
--- a/gir/everything.h
+++ b/gir/everything.h
@@ -36,6 +36,9 @@ void test_utf8_out (char **out);
void test_utf8_inout (char **inout);
GSList *test_filename_return (void);
+/* in arguments after out arguments */
+void test_int_out_utf8 (int *length, const char *in);
+
/* multiple output arguments */
void test_multi_double_args (gdouble in, gdouble *one, gdouble *two);
void test_utf8_out_out (char **out0, char **out1);