summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2010-05-05 17:59:22 +0200
committerTomeu Vizoso <tomeu@sugarlabs.org>2010-05-05 17:59:22 +0200
commitb71b428629824ee2a66a229600521781d3e39dea (patch)
tree06dd4211996d9a49686b555c5bb98e90a91351dc
parentf84400b39b966289d6a98548f606b247b05fb6c1 (diff)
downloadgobject-introspection-b71b428629824ee2a66a229600521781d3e39dea.tar.gz
Add test vfunc for testing out args in callbacks
-rw-r--r--gir/gimarshallingtests.c20
-rw-r--r--gir/gimarshallingtests.h8
2 files changed, 28 insertions, 0 deletions
diff --git a/gir/gimarshallingtests.c b/gir/gimarshallingtests.c
index 0a8b7946..53aeb5bf 100644
--- a/gir/gimarshallingtests.c
+++ b/gir/gimarshallingtests.c
@@ -3046,6 +3046,16 @@ g_i_marshalling_tests_object_method_int8_in (GIMarshallingTestsObject *self, gin
}
/**
+ * g_i_marshalling_tests_object_method_int8_out:
+ * @out: (out):
+ */
+void
+g_i_marshalling_tests_object_method_int8_out (GIMarshallingTestsObject *self, gint8 *out)
+{
+ G_I_MARSHALLING_TESTS_OBJECT_GET_CLASS (self)->method_int8_out (self, out);
+}
+
+/**
* g_i_marshalling_tests_object_method_with_default_implementation:
* @in: (in):
*/
@@ -3191,6 +3201,16 @@ g_i_marshalling_tests__object_int8_in (GIMarshallingTestsObject *object, gint8 i
g_i_marshalling_tests_object_method_int8_in (object, in);
}
+/**
+ * g_i_marshalling_tests__object_test_int8_out:
+ * @out: (out):
+ */
+void
+g_i_marshalling_tests__object_int8_out (GIMarshallingTestsObject *object, gint8 *out)
+{
+ g_i_marshalling_tests_object_method_int8_out (object, out);
+}
+
G_DEFINE_TYPE (GIMarshallingTestsSubObject, g_i_marshalling_tests_sub_object, G_I_MARSHALLING_TESTS_TYPE_OBJECT);
diff --git a/gir/gimarshallingtests.h b/gir/gimarshallingtests.h
index dd41866f..deb33e50 100644
--- a/gir/gimarshallingtests.h
+++ b/gir/gimarshallingtests.h
@@ -558,6 +558,12 @@ struct _GIMarshallingTestsObjectClass
void (* method_int8_in) (GIMarshallingTestsObject *self, gint8 in);
/**
+ * GIMarshallingTestsObjectClass::method_int8_out:
+ * @out: (out):
+ */
+ void (* method_int8_out) (GIMarshallingTestsObject *self, gint8 *out);
+
+ /**
* GIMarshallingTestsObjectClass::method_with_default_implementation:
* @in: (in):
*/
@@ -583,6 +589,7 @@ void g_i_marshalling_tests_object_method_array_inout (GIMarshallingTestsObject *
const gint *g_i_marshalling_tests_object_method_array_return (GIMarshallingTestsObject *object, gint *length);
void g_i_marshalling_tests_object_method_int8_in (GIMarshallingTestsObject *object, gint8 in);
+void g_i_marshalling_tests_object_method_int8_out (GIMarshallingTestsObject *object, gint8 *out);
void g_i_marshalling_tests_object_method_with_default_implementation (GIMarshallingTestsObject *object, gint8 in);
@@ -600,6 +607,7 @@ void g_i_marshalling_tests__object_full_inout (GIMarshallingTestsObject **object
void g_i_marshalling_tests__object_inout_same (GIMarshallingTestsObject **object);
void g_i_marshalling_tests__object_int8_in (GIMarshallingTestsObject *object, gint8 in);
+void g_i_marshalling_tests__object_int8_out (GIMarshallingTestsObject *object, gint8 *out);
#define G_I_MARSHALLING_TESTS_TYPE_SUB_OBJECT (g_i_marshalling_tests_sub_object_get_type ())
#define G_I_MARSHALLING_TESTS_SUB_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_I_MARSHALLING_TESTS_TYPE_SUB_OBJECT, GIMarshallingTestsSubObject))