summaryrefslogtreecommitdiff
path: root/gir
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2010-06-22 14:36:36 +1000
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2010-06-22 14:36:36 +1000
commitc6a1f0446e6854c81ebeae12baa4debb0655f9be (patch)
tree8850765c54f1fe8fc11e41178f83c743475d248e /gir
parent4016ebe9a5143bda74bd543604f2e32d882115d9 (diff)
parent66eb7142b048c1c08cbbb740a4bb9ab06c9ed20a (diff)
downloadgobject-introspection-c6a1f0446e6854c81ebeae12baa4debb0655f9be.tar.gz
Merge branch 'gvalue-tests'
Diffstat (limited to 'gir')
-rw-r--r--gir/everything.c23
-rw-r--r--gir/everything.h3
2 files changed, 26 insertions, 0 deletions
diff --git a/gir/everything.c b/gir/everything.c
index f8baada6..690dc733 100644
--- a/gir/everything.c
+++ b/gir/everything.c
@@ -2354,3 +2354,26 @@ test_torture_signature_2 (int x,
notify (user_data);
}
+GValue *
+test_date_in_gvalue (void)
+{
+ GValue *value = g_new0 (GValue, 1);
+ GDate *date = g_date_new_dmy (5, 12, 1984);
+
+ g_value_init (value, G_TYPE_DATE);
+ g_value_take_boxed (value, date);
+
+ return value;
+}
+
+GValue *
+test_strv_in_gvalue (void)
+{
+ GValue *value = g_new0 (GValue, 1);
+ const char *strv[] = { "one", "two", "three", NULL };
+
+ g_value_init (value, G_TYPE_STRV);
+ g_value_set_boxed (value, strv);
+
+ return value;
+}
diff --git a/gir/everything.h b/gir/everything.h
index 3f89e226..8a8b1e0d 100644
--- a/gir/everything.h
+++ b/gir/everything.h
@@ -441,4 +441,7 @@ void test_torture_signature_2 (int x,
int *q,
guint m);
+GValue *test_date_in_gvalue (void);
+GValue *test_strv_in_gvalue (void);
+
#endif /* __GITESTTYPES_H__ */