summaryrefslogtreecommitdiff
path: root/tests/gimarshallingtests.c
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu.duponchelle@epitech.eu>2012-08-20 22:43:29 +0200
committerMartin Pitt <martinpitt@gnome.org>2012-08-20 22:46:23 +0200
commit4aed22c74b16325a7fb167afb6390bc71d8a41b7 (patch)
tree5d56da9ae4ee859cf31cfe7454acbc37236c0d3e /tests/gimarshallingtests.c
parentd8970fbc500a8b20853b564536251315587450d9 (diff)
downloadgobject-introspection-4aed22c74b16325a7fb167afb6390bc71d8a41b7.tar.gz
gimarshallingtests: Add GParamSpec return and (out) argument
https://bugzilla.gnome.org/show_bug.cgi?id=681565 Co-Authored-By: Martin Pitt <martinpitt@gnome.org>
Diffstat (limited to 'tests/gimarshallingtests.c')
-rw-r--r--tests/gimarshallingtests.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c
index 9f1d0d48..dec04387 100644
--- a/tests/gimarshallingtests.c
+++ b/tests/gimarshallingtests.c
@@ -4465,6 +4465,27 @@ gi_marshalling_tests_filename_list_return (void)
return NULL;
}
+/**
+ * gi_marshalling_tests_param_spec_return:
+ *
+ * Returns: (transfer full): a #GParamSpec
+ */
+GParamSpec *
+gi_marshalling_tests_param_spec_return()
+{
+ return g_param_spec_string("test-param", "test", "This is a test", "42", G_PARAM_READABLE);
+}
+
+/**
+ * gi_marshalling_tests_param_spec_out:
+ * @param: (out):
+ */
+void
+gi_marshalling_tests_param_spec_out(GParamSpec **param)
+{
+ *param = g_param_spec_string("test-param", "test", "This is a test", "42", G_PARAM_READABLE);
+}
+
enum {
DUMMY_PROPERTY,