diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2012-01-20 14:48:20 +0000 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2012-01-24 15:47:57 +0100 |
commit | 1ab4040596dfb4b0b38d547711990ec294771f27 (patch) | |
tree | b9b2c396f85292bf9f0899b0603ff023915ed71c /tests/gimarshallingtests.h | |
parent | 60533d4528690df72287d1fe0dde9e0257081dd3 (diff) | |
download | gobject-introspection-1ab4040596dfb4b0b38d547711990ec294771f27.tar.gz |
tests: add test functions which return GErrors
GStreamer has the following method:
void gst_message_parse_error (
GstMessage *message,
GError **error,
gchar **debug_message);
This patch adds a number of test functions with similar signatures which
do not follow the standard "throws GError" pattern.
https://bugzilla.gnome.org/show_bug.cgi?id=666098
Diffstat (limited to 'tests/gimarshallingtests.h')
-rw-r--r-- | tests/gimarshallingtests.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h index 5965a82c..e80a0e5e 100644 --- a/tests/gimarshallingtests.h +++ b/tests/gimarshallingtests.h @@ -801,9 +801,13 @@ gint gi_marshalling_tests_int_return_out (gint *int_); #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" +#define GI_MARSHALLING_TESTS_CONSTANT_GERROR_DEBUG_MESSAGE "we got an error, life is shit" void gi_marshalling_tests_gerror(GError **error); void gi_marshalling_tests_gerror_array_in(gint *in_ints, GError **error); +void gi_marshalling_tests_gerror_out(GError **error, gchar **debug); +void gi_marshalling_tests_gerror_out_transfer_none(GError **err, const gchar **debug); +GError *gi_marshalling_tests_gerror_return(); /* Overrides */ |