summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2010-04-18 10:26:29 -0400
committerTomeu Vizoso <tomeu@sugarlabs.org>2010-04-18 10:26:29 -0400
commite614241fd12a3b630ff0c9fd9f175d7da985ee27 (patch)
treeb294982ce2f68fd1597e7a8797a495eaf1646327
parent2fa66ff7cfc0483efd65232238ce147eb72a37cc (diff)
downloadgobject-introspection-e614241fd12a3b630ff0c9fd9f175d7da985ee27.tar.gz
Add tests for vfuncs in classes
-rw-r--r--gir/gimarshallingtests.c20
-rw-r--r--gir/gimarshallingtests.h10
2 files changed, 30 insertions, 0 deletions
diff --git a/gir/gimarshallingtests.c b/gir/gimarshallingtests.c
index 0f576a82..25ce4846 100644
--- a/gir/gimarshallingtests.c
+++ b/gir/gimarshallingtests.c
@@ -2622,6 +2622,16 @@ g_i_marshalling_tests_object_method_array_return (GIMarshallingTestsObject *obje
return ints;
}
+/**
+ * g_i_marshalling_tests_object_method_int8_in:
+ * @in: (in):
+ */
+void
+g_i_marshalling_tests_object_method_int8_in (GIMarshallingTestsObject *self, gint8 in)
+{
+ G_I_MARSHALLING_TESTS_OBJECT_GET_CLASS (self)->method_int8_in (self, in);
+}
+
/**
* g_i_marshalling_tests__object_none_return:
@@ -2739,6 +2749,16 @@ g_i_marshalling_tests__object_inout_same (GIMarshallingTestsObject **object)
(*object)->int_ = 0;
}
+/**
+ * g_i_marshalling_tests__object_test_int8_in:
+ * @in: (in):
+ */
+void
+g_i_marshalling_tests__object_int8_in (GIMarshallingTestsObject *object, gint8 in)
+{
+ g_i_marshalling_tests_object_method_int8_in (object, in);
+}
+
G_DEFINE_TYPE (GIMarshallingTestsSubObject, g_i_marshalling_tests_sub_object, G_I_MARSHALLING_TESTS_TYPE_OBJECT);
diff --git a/gir/gimarshallingtests.h b/gir/gimarshallingtests.h
index e5fe949c..998fd27b 100644
--- a/gir/gimarshallingtests.h
+++ b/gir/gimarshallingtests.h
@@ -495,6 +495,12 @@ typedef struct _GIMarshallingTestsObject GIMarshallingTestsObject;
struct _GIMarshallingTestsObjectClass
{
GObjectClass parent_class;
+
+ /**
+ * GIMarshallingTestsObjectClass::method_int8_in:
+ * @in: (in):
+ */
+ void (* method_int8_in) (GIMarshallingTestsObject *self, gint8 in);
};
struct _GIMarshallingTestsObject
@@ -515,6 +521,9 @@ void g_i_marshalling_tests_object_method_array_out (GIMarshallingTestsObject *ob
void g_i_marshalling_tests_object_method_array_inout (GIMarshallingTestsObject *object, gint **ints, gint *length);
const gint *g_i_marshalling_tests_object_method_array_return (GIMarshallingTestsObject *object, gint *length);
+void g_i_marshalling_tests_object_method_int8_in (GIMarshallingTestsObject *object, gint8 in);
+
+
GIMarshallingTestsObject *g_i_marshalling_tests__object_none_return (void);
GIMarshallingTestsObject *g_i_marshalling_tests__object_full_return (void);
@@ -528,6 +537,7 @@ void g_i_marshalling_tests__object_none_inout (GIMarshallingTestsObject **object
void g_i_marshalling_tests__object_full_inout (GIMarshallingTestsObject **object);
void g_i_marshalling_tests__object_inout_same (GIMarshallingTestsObject **object);
+void g_i_marshalling_tests__object_int8_in (GIMarshallingTestsObject *object, gint8 in);
#define G_I_MARSHALLING_TESTS_TYPE_SUB_OBJECT (g_i_marshalling_tests_sub_object_get_type ())
#define G_I_MARSHALLING_TESTS_SUB_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_I_MARSHALLING_TESTS_TYPE_SUB_OBJECT, GIMarshallingTestsSubObject))