summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2009-12-07 11:49:33 -0500
committerColin Walters <walters@verbum.org>2009-12-08 08:57:18 -0500
commitfe2c45d715703c02b4cf3cff2ffd951c769a5d2e (patch)
tree82f98ccdc12d3387095d63240e34acea1a812570
parent7db185366e16b91b276d3b5876450c90ca02f398 (diff)
downloadgobject-introspection-fe2c45d715703c02b4cf3cff2ffd951c769a5d2e.tar.gz
[everything] Add a function which has multiple (out) double arguments
This is similar to a Clutter function.
-rw-r--r--gir/Everything-1.0-expected.gir17
-rw-r--r--gir/everything.c13
-rw-r--r--gir/everything.h1
3 files changed, 31 insertions, 0 deletions
diff --git a/gir/Everything-1.0-expected.gir b/gir/Everything-1.0-expected.gir
index 2518a6d9..5bb6c183 100644
--- a/gir/Everything-1.0-expected.gir
+++ b/gir/Everything-1.0-expected.gir
@@ -1240,6 +1240,23 @@ call and can be released on return.">
</parameter>
</parameters>
</function>
+ <function name="test_multi_double_args"
+ c:identifier="test_multi_double_args">
+ <return-value transfer-ownership="none">
+ <type name="none" c:type="void"/>
+ </return-value>
+ <parameters>
+ <parameter name="in" transfer-ownership="none">
+ <type name="double" c:type="gdouble"/>
+ </parameter>
+ <parameter name="one" direction="out" transfer-ownership="full">
+ <type name="double" c:type="gdouble*"/>
+ </parameter>
+ <parameter name="two" direction="out" transfer-ownership="full">
+ <type name="double" c:type="gdouble*"/>
+ </parameter>
+ </parameters>
+ </function>
<function name="test_short" c:identifier="test_short">
<return-value transfer-ownership="none">
<type name="short" c:type="gshort"/>
diff --git a/gir/everything.c b/gir/everything.c
index 563a05f3..f968bbeb 100644
--- a/gir/everything.c
+++ b/gir/everything.c
@@ -261,6 +261,19 @@ GSList *test_filename_return (void)
/* multiple output arguments */
/**
+ * test_multi_double_args:
+ * @in:
+ * @one: (out):
+ * @two: (out):
+ */
+void
+test_multi_double_args (gdouble in, gdouble *one, gdouble *two)
+{
+ *one = in * 2;
+ *two = in * 3;
+}
+
+/**
* test_utf8_out_out:
* @out0: (out) (transfer full): a copy of "first"
* @out1: (out) (transfer full): a copy of "second"
diff --git a/gir/everything.h b/gir/everything.h
index 6eaa09ea..8b189034 100644
--- a/gir/everything.h
+++ b/gir/everything.h
@@ -37,6 +37,7 @@ void test_utf8_inout (char **inout);
GSList *test_filename_return (void);
/* multiple output arguments */
+void test_multi_double_args (gdouble in, gdouble *one, gdouble *two);
void test_utf8_out_out (char **out0, char **out1);
char *test_utf8_out_nonconst_return (char **out);