[gobject-introspection] gimarshallingtests: Add GParamSpec return and (out) argument



commit 4aed22c74b16325a7fb167afb6390bc71d8a41b7
Author: Mathieu Duponchelle <mathieu duponchelle epitech eu>
Date:   Mon Aug 20 22:43:29 2012 +0200

    gimarshallingtests: Add GParamSpec return and (out) argument
    
    https://bugzilla.gnome.org/show_bug.cgi?id=681565
    
    Co-Authored-By: Martin Pitt <martinpitt gnome org>

 tests/gimarshallingtests.c |   21 +++++++++++++++++++++
 tests/gimarshallingtests.h |    4 ++++
 2 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c
index 9f1d0d4..dec0438 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,
diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h
index 7bcbffb..9b88223 100644
--- a/tests/gimarshallingtests.h
+++ b/tests/gimarshallingtests.h
@@ -954,6 +954,10 @@ 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(void);
 
+/* GParamSpec */
+GParamSpec *gi_marshalling_tests_param_spec_return();
+void gi_marshalling_tests_param_spec_out(GParamSpec **param);
+
 /* Overrides */
 
 #define GI_MARSHALLING_TESTS_OVERRIDES_CONSTANT 42



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]