summaryrefslogtreecommitdiff
path: root/tests/scanner/foo.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2009-10-22 23:53:37 -0400
committerColin Walters <walters@verbum.org>2009-10-22 23:53:37 -0400
commit9fe8f41bacef14f08d4d30528725fa920dc7e49a (patch)
tree3971bafaf3fec71fb5251c5ed11d7de4f3fe6912 /tests/scanner/foo.h
parent74823810e941aeebcdf8c87b134a14a978cbfeaa (diff)
downloadgobject-introspection-9fe8f41bacef14f08d4d30528725fa920dc7e49a.tar.gz
When doing type resolution on a string, treat it as its own ctype
Calling _resolve_param_type on a string instead of Node is fairly unusual, and (as far as I could see) basically only happened in the Array processing code. We were passing None as the ctype in this case, but we might as well try using the name as a ctype too. This fixes using GCallback (and in general any item in an array that comes from an included gir).
Diffstat (limited to 'tests/scanner/foo.h')
-rw-r--r--tests/scanner/foo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/scanner/foo.h b/tests/scanner/foo.h
index 2e018cea..7c2afe63 100644
--- a/tests/scanner/foo.h
+++ b/tests/scanner/foo.h
@@ -87,6 +87,9 @@ struct _FooObjectClass
/* Intended to match GFile */
void (*read_fn) (FooObject *object, int offset, int length);
+
+ /* Test reserved stuff */
+ GCallback _reserved[4];
};
gint foo_init (void);