}
/**
+ * gi_marshalling_tests_param_spec_in_bool:
+ */
+void
+gi_marshalling_tests_param_spec_in_bool (const GParamSpec *param)
+{
+ g_assert (G_IS_PARAM_SPEC (param));
+ g_assert_cmpint (G_PARAM_SPEC_TYPE (param), ==, G_TYPE_BOOLEAN);
+ g_assert_cmpstr (g_param_spec_get_name(param), ==, "mybool");
+}
+
+/**
* gi_marshalling_tests_param_spec_return:
*
* Returns: (transfer full): a #GParamSpec
GParamSpec *
gi_marshalling_tests_param_spec_return (void)
{
- return g_param_spec_string ("test-param", "test", "This is a test", "42", G_PARAM_READABLE);
+ return g_param_spec_string ("test-param", "test", "This is a test", "42", G_PARAM_READABLE);
}
/**
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);
+ *param = g_param_spec_string("test-param", "test", "This is a test", "42", G_PARAM_READABLE);
}
GError *gi_marshalling_tests_gerror_return(void);
/* GParamSpec */
+void gi_marshalling_tests_param_spec_in_bool(const GParamSpec *param);
GParamSpec *gi_marshalling_tests_param_spec_return (void);
void gi_marshalling_tests_param_spec_out(GParamSpec **param);