summaryrefslogtreecommitdiff
path: root/tests/gimarshallingtests.c
diff options
context:
space:
mode:
authorMartin Pitt <martinpitt@gnome.org>2012-09-10 16:19:41 +0200
committerMartin Pitt <martinpitt@gnome.org>2012-09-10 16:28:59 +0200
commit9a472fb76c8d603b439562accf0593bb63d86215 (patch)
tree36c26bb241f7dc4713ed192c876763475bf2f79c /tests/gimarshallingtests.c
parent80e12709c105ce4a00af496201004fc8fd355a56 (diff)
downloadgobject-introspection-9a472fb76c8d603b439562accf0593bb63d86215.tar.gz
gimarshallingtests: Add in/out int64 GValue method arguments
See https://bugzilla.gnome.org/show_bug.cgi?id=683596
Diffstat (limited to 'tests/gimarshallingtests.c')
-rw-r--r--tests/gimarshallingtests.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c
index dec04387..3eb6e075 100644
--- a/tests/gimarshallingtests.c
+++ b/tests/gimarshallingtests.c
@@ -2945,6 +2945,16 @@ gi_marshalling_tests_gvalue_in (GValue *value)
}
/**
+ * gi_marshalling_tests_gvalue_int64_in:
+ * @value: (transfer none):
+ */
+void
+gi_marshalling_tests_gvalue_int64_in (GValue *value)
+{
+ g_assert_cmpint(g_value_get_int64(value), ==, G_MAXINT64);
+}
+
+/**
* gi_marshalling_tests_gvalue_in_with_type:
* @value: (transfer none):
* @type:
@@ -2984,6 +2994,24 @@ gi_marshalling_tests_gvalue_out (GValue **value)
}
/**
+ * gi_marshalling_tests_gvalue_int64_out:
+ * @value: (out) (transfer none):
+ */
+void
+gi_marshalling_tests_gvalue_int64_out (GValue **value)
+{
+ static GValue *new_value = NULL;
+
+ if (new_value == NULL) {
+ new_value = g_new0(GValue, 1);
+ g_value_init(new_value, G_TYPE_INT64);
+ g_value_set_int64(new_value, G_MAXINT64);
+ }
+
+ *value = new_value;
+}
+
+/**
* gi_marshalling_tests_gvalue_out_caller_allocates:
* @value: (out) (transfer none):
*/