summaryrefslogtreecommitdiff
path: root/tests/scanner/regress.h
diff options
context:
space:
mode:
authorKrzesimir Nowak <qdlacz@gmail.com>2012-07-04 22:52:02 +0200
committerColin Walters <walters@verbum.org>2012-07-07 17:13:40 -0400
commit3943988d5addbea4603f9b4ee5103c604d03e8f4 (patch)
treee5ca09e5c92ad4b1215d8e37ebaa071064cd60e6 /tests/scanner/regress.h
parent09fe4ca9b3e816f87698761f4b66bc2d0c25e4e0 (diff)
downloadgobject-introspection-3943988d5addbea4603f9b4ee5103c604d03e8f4.tar.gz
giscanner: Write detailed information in "type" tag's "c:type" attribute.
That is - write also type qualifiers (const and volatile here). Update existing tests and add a new struct to regress.h having members with type qualifiers. https://bugzilla.gnome.org/show_bug.cgi?id=656445
Diffstat (limited to 'tests/scanner/regress.h')
-rw-r--r--tests/scanner/regress.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h
index 13916374..97b9135b 100644
--- a/tests/scanner/regress.h
+++ b/tests/scanner/regress.h
@@ -262,6 +262,7 @@ typedef struct _RegressTestStructA RegressTestStructA;
typedef struct _RegressTestStructB RegressTestStructB;
typedef struct _RegressTestStructC RegressTestStructC;
typedef struct _RegressTestStructD RegressTestStructD;
+typedef struct _RegressTestStructF RegressTestStructF;
struct _RegressTestStructA
{
@@ -298,6 +299,7 @@ struct _RegressTestStructC
* @field: (type RegressTestObj):
* @list: (element-type RegressTestObj):
* @garray: (element-type RegressTestObj):
+ * @ref_count:
*/
struct _RegressTestStructD
{
@@ -325,6 +327,18 @@ struct RegressTestStructE
} some_union[2];
};
+/* This one has members with const or volatile modifiers. */
+struct _RegressTestStructF
+{
+ volatile gint ref_count;
+ const gint *data1;
+ const gint *const data2;
+ const gint *const *const data3;
+ const gint **const* data4;
+ volatile gint *const data5;
+ const gint *volatile data6;
+};
+
/* plain-old-data boxed types */
typedef struct _RegressTestSimpleBoxedA RegressTestSimpleBoxedA;
typedef struct _RegressTestSimpleBoxedB RegressTestSimpleBoxedB;