summaryrefslogtreecommitdiff
path: root/tests/gimarshallingtests.h
diff options
context:
space:
mode:
authorLaszlo Pandy <lpandy@src.gnome.org>2011-01-19 17:31:16 +0100
committerLaszlo Pandy <lpandy@src.gnome.org>2011-01-19 18:17:07 +0100
commit8ae994ef54a040bcf2e3b9f71d4a5c1d5ede98d5 (patch)
tree1400053958324f4542fc62e547de6fcbe89894f0 /tests/gimarshallingtests.h
parent639558ad4138dcc228ff898430f8e4c2a29b3ae9 (diff)
downloadgobject-introspection-8ae994ef54a040bcf2e3b9f71d4a5c1d5ede98d5.tar.gz
Add GIMarshallingTests function which sets a GError, to test exception handling in bindings.
https://bugzilla.gnome.org/show_bug.cgi?id=639834
Diffstat (limited to 'tests/gimarshallingtests.h')
-rw-r--r--tests/gimarshallingtests.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h
index 06058839..cc992ca1 100644
--- a/tests/gimarshallingtests.h
+++ b/tests/gimarshallingtests.h
@@ -683,6 +683,14 @@ gint gi_marshalling_tests_int_return_out (gint *int_);
void gi_marshalling_tests_utf8_full_out_out (gchar **utf80, gchar **utf82);
+/* GError */
+
+#define GI_MARSHALLING_TESTS_CONSTANT_GERROR_DOMAIN "gi-marshalling-tests-gerror-domain"
+#define GI_MARSHALLING_TESTS_CONSTANT_GERROR_CODE 5
+#define GI_MARSHALLING_TESTS_CONSTANT_GERROR_MESSAGE "gi-marshalling-tests-gerror-message"
+
+void gi_marshalling_tests_gerror(GError **error);
+
/* Overrides */
#define GI_MARSHALLING_TESTS_OVERRIDES_CONSTANT 42