[gobject-introspection] Add GIMarshalllingTests function with in parameter as well as GError.
- From: Laszlo Pandy <lpandy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Add GIMarshalllingTests function with in parameter as well as GError.
- Date: Wed, 23 Feb 2011 12:39:17 +0000 (UTC)
commit 3fe4ad82003a5472c44585627f86e5883772acca
Author: Laszlo Pandy <lpandy src gnome org>
Date: Wed Feb 23 13:37:09 2011 +0100
Add GIMarshalllingTests function with in parameter as well as GError.
This allows bindings to test the ability to clean up (in)
parameters after a GError is set by the wrapped function.
tests/gimarshallingtests.c | 14 ++++++++++++++
tests/gimarshallingtests.h | 1 +
2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c
index bea65a4..aa9fb7c 100644
--- a/tests/gimarshallingtests.c
+++ b/tests/gimarshallingtests.c
@@ -3313,6 +3313,20 @@ gi_marshalling_tests_gerror(GError **error)
GI_MARSHALLING_TESTS_CONSTANT_GERROR_MESSAGE);
}
+/**
+ * gi_marshalling_tests_gerror_array_in:
+ * @in_ints: (array zero-terminated=1):
+ */
+void
+gi_marshalling_tests_gerror_array_in(gint *in_ints, GError **error)
+{
+ GQuark quark = g_quark_from_static_string(GI_MARSHALLING_TESTS_CONSTANT_GERROR_DOMAIN);
+ g_set_error_literal(error,
+ quark,
+ GI_MARSHALLING_TESTS_CONSTANT_GERROR_CODE,
+ GI_MARSHALLING_TESTS_CONSTANT_GERROR_MESSAGE);
+}
+
static GIMarshallingTestsOverridesStruct *
gi_marshalling_tests_overrides_struct_copy (GIMarshallingTestsOverridesStruct *struct_)
{
diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h
index a604e2f..6ab99da 100644
--- a/tests/gimarshallingtests.h
+++ b/tests/gimarshallingtests.h
@@ -737,6 +737,7 @@ gint gi_marshalling_tests_int_return_out (gint *int_);
#define GI_MARSHALLING_TESTS_CONSTANT_GERROR_MESSAGE "gi-marshalling-tests-gerror-message"
void gi_marshalling_tests_gerror(GError **error);
+void gi_marshalling_tests_gerror_array_in(gint *in_ints, GError **error);
/* Overrides */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]