summaryrefslogtreecommitdiff
path: root/tests/scanner/annotation.h
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-10-20 20:47:13 +0200
committerStef Walter <stefw@gnome.org>2013-10-28 20:54:27 +0100
commit2a569cb68ca4e4ce08ff66fc20a79bc57222c2e2 (patch)
tree49af0867f76eb5f916f417f19cd54f864dd252aa /tests/scanner/annotation.h
parentf7acdd34e28456d706a38e51b8332569d7a0f271 (diff)
downloadgobject-introspection-2a569cb68ca4e4ce08ff66fc20a79bc57222c2e2.tar.gz
giscanner: Correctly consume field annotations on structs
A hidden exception was being thrown (which we now log), due to fields being treated as function parameters. Fixed to make field array annotations be transformed and written out to the gir correctly. https://bugzilla.gnome.org/show_bug.cgi?id=710561
Diffstat (limited to 'tests/scanner/annotation.h')
-rw-r--r--tests/scanner/annotation.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/scanner/annotation.h b/tests/scanner/annotation.h
index 2084da29..b0cbe42d 100644
--- a/tests/scanner/annotation.h
+++ b/tests/scanner/annotation.h
@@ -159,6 +159,21 @@ struct RegressAnnotationStruct
RegressAnnotationObject *objects[10];
};
+/**
+ * RegressAnnotationFields:
+ * @field1: Some documentation
+ * @arr: (array length=len): an array of length @len
+ * @len: the length of array
+ *
+ * This is a struct for testing field documentation and annotations
+ */
+struct RegressAnnotationFields
+{
+ int field1;
+ guchar *arr;
+ gulong len;
+};
+
void regress_annotation_ptr_array (GPtrArray *array);
GObject * regress_annotation_test_parsing_bug630862 (void);