[gobject-introspection] [everything] Add a function which has multiple (out) double arguments
- From: Colin Walters <walters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gobject-introspection] [everything] Add a function which has multiple (out) double arguments
- Date: Tue, 8 Dec 2009 13:56:33 +0000 (UTC)
commit fe2c45d715703c02b4cf3cff2ffd951c769a5d2e
Author: Colin Walters <walters verbum org>
Date: Mon Dec 7 11:49:33 2009 -0500
[everything] Add a function which has multiple (out) double arguments
This is similar to a Clutter function.
gir/Everything-1.0-expected.gir | 17 +++++++++++++++++
gir/everything.c | 13 +++++++++++++
gir/everything.h | 1 +
3 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/gir/Everything-1.0-expected.gir b/gir/Everything-1.0-expected.gir
index 2518a6d..5bb6c18 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 563a05f..f968bbe 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 6eaa09e..8b18903 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]