Keep TestStructA as simple by moving GObject member to a new structure
authorColin Walters <walters@verbum.org>
Tue, 3 Mar 2009 21:44:36 +0000 (16:44 -0500)
committerColin Walters <walters@verbum.org>
Tue, 3 Mar 2009 21:44:36 +0000 (16:44 -0500)
The change in commit 2912b broke the gjs test suite which was relying
on TestStructA being "simple" (i.e. only having primitive fields as members).

tests/everything/everything.h

index 448c74d..dbb7995 100644 (file)
@@ -107,7 +107,6 @@ struct _TestStructA
   gint8 some_int8;
   gdouble some_double;
   TestEnum some_enum;
-  GObject *some_obj;
 };
 
 void test_struct_a_clone (TestStructA *a,
@@ -122,6 +121,13 @@ struct _TestStructB
 void test_struct_b_clone (TestStructB *b,
                          TestStructB *b_out);
 
+/* This one has a non-basic member */
+struct _TestStructC
+{
+  gint another_int;
+  GObject *obj;
+};
+
 /* plain-old-data boxed types */
 typedef struct _TestSimpleBoxedA TestSimpleBoxedA;
 typedef struct _TestSimpleBoxedB TestSimpleBoxedB;