[gobject-introspection] Add tests for vfuncs in classes
- From: Tomeu Vizoso <tomeuv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Add tests for vfuncs in classes
- Date: Sun, 18 Apr 2010 14:26:36 +0000 (UTC)
commit e614241fd12a3b630ff0c9fd9f175d7da985ee27
Author: Tomeu Vizoso <tomeu sugarlabs org>
Date: Sun Apr 18 10:26:29 2010 -0400
Add tests for vfuncs in classes
gir/gimarshallingtests.c | 20 ++++++++++++++++++++
gir/gimarshallingtests.h | 10 ++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)
---
diff --git a/gir/gimarshallingtests.c b/gir/gimarshallingtests.c
index 0f576a8..25ce484 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 e5fe949..998fd27 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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]