summaryrefslogtreecommitdiff
path: root/tests/gimarshallingtests.h
diff options
context:
space:
mode:
authorSebastian Pölsterl <sebp@k-d-w.org>2012-02-05 11:45:07 +0100
committerSebastian Pölsterl <sebp@k-d-w.org>2012-02-06 18:53:36 +0100
commit6a9b3102a5769714c21032b3c9455e1d5c271393 (patch)
tree2019152491ff9e54396296166c43835eea1e2deb /tests/gimarshallingtests.h
parent6757460e4a95f818d3a73d7904ef8a7afb6987fc (diff)
downloadgobject-introspection-6a9b3102a5769714c21032b3c9455e1d5c271393.tar.gz
tests: Added class that has all kinds of properties
https://bugzilla.gnome.org/show_bug.cgi?id=664150
Diffstat (limited to 'tests/gimarshallingtests.h')
-rw-r--r--tests/gimarshallingtests.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h
index 1d66991f..782e61c5 100644
--- a/tests/gimarshallingtests.h
+++ b/tests/gimarshallingtests.h
@@ -956,4 +956,40 @@ glong gi_marshalling_tests_overrides_object_method (GIMarshallingTestsOverridesO
GIMarshallingTestsOverridesObject *gi_marshalling_tests_overrides_object_returnv (void);
+/* Properties Object */
+
+#define GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT (gi_marshalling_tests_properties_object_get_type ())
+#define GI_MARSHALLING_TESTS_PROPERTIES_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT, GIMarshallingTestsPropertiesObject))
+#define GI_MARSHALLING_TESTS_PROPERTIES_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT, GIMarshallingTestsPropertiesObjectClass))
+#define GI_MARSHALLING_TESTS_IS_PROPERTIES_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT))
+#define GI_MARSHALLING_TESTS_IS_PROPERTIES_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT))
+#define GI_MARSHALLING_TESTS_PROPERTIES_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT, GIMarshallingTestsPropertiesObjectClass))
+
+typedef struct _GIMarshallingTestsPropertiesObject GIMarshallingTestsPropertiesObject;
+typedef struct _GIMarshallingTestsPropertiesObjectClass GIMarshallingTestsPropertiesObjectClass;
+
+struct _GIMarshallingTestsPropertiesObject {
+ GObject parent_instance;
+
+ gboolean some_boolean;
+ gchar some_char;
+ guchar some_uchar;
+ gint some_int;
+ guint some_uint;
+ glong some_long;
+ gulong some_ulong;
+ gint64 some_int64;
+ guint64 some_uint64;
+ gfloat some_float;
+ gdouble some_double;
+};
+
+struct _GIMarshallingTestsPropertiesObjectClass {
+ GObjectClass parent_class;
+};
+
+GType gi_marshalling_tests_properties_object_get_type (void) G_GNUC_CONST;
+
+GIMarshallingTestsPropertiesObject *gi_marshalling_tests_properties_object_new (void);
+
#endif /* _GI_MARSHALLING_TESTS_H_ */