summaryrefslogtreecommitdiff
path: root/tests/scanner/drawable.c
diff options
context:
space:
mode:
authorJohan Bilien <jobi@via.ecp.fr>2008-10-15 17:47:08 +0000
committerJohan Bilien <jobi@src.gnome.org>2008-10-15 17:47:08 +0000
commita658109407ab33222584b93ae00aaf135807a456 (patch)
treedb70989e2d19a2647322d5f941dead3a4e0b6e26 /tests/scanner/drawable.c
parent85dd1cd58ef71a368f52abcb0bf8c4cc4ce0c572 (diff)
downloadgobject-introspection-a658109407ab33222584b93ae00aaf135807a456.tar.gz
Bug 556433 – assume direction = out for int * parameters
2008-10-15 Johan Bilien <jobi@via.ecp.fr> Bug 556433 – assume direction = out for int * parameters * giscanner/ast.py: define a list of types for which, if passed as reference, we assume a default direction of 'out' * giscanner/transformer.py: if a type has type pointer to one of the previously defined types, and no direction is set, assume out. * tests/scanner/drawable.[ch]: added tests for guessed direction=out svn path=/trunk/; revision=710
Diffstat (limited to 'tests/scanner/drawable.c')
-rw-r--r--tests/scanner/drawable.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/scanner/drawable.c b/tests/scanner/drawable.c
index 7dbd5fc1..2f0d5629 100644
--- a/tests/scanner/drawable.c
+++ b/tests/scanner/drawable.c
@@ -19,3 +19,17 @@ test_drawable_do_foo (TestDrawable *drawable, int x)
{
}
+
+void
+test_drawable_get_origin (TestDrawable *drawable, int *x, int *y)
+{
+ *x = 0;
+ *y = 0;
+}
+
+void
+test_drawable_get_size (TestDrawable *drawable, guint *width, guint *height)
+{
+ *width = 42;
+ *height = 42;
+}