diff options
Diffstat (limited to 'tests/gimarshallingtests.c')
-rw-r--r-- | tests/gimarshallingtests.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c index bd3fe811..ee75de51 100644 --- a/tests/gimarshallingtests.c +++ b/tests/gimarshallingtests.c @@ -4640,6 +4640,7 @@ gi_marshalling_tests_interface_get_type (void) static GType type = 0; if (type == 0) { + /* Not adding prerequisite here for test purposes */ type = g_type_register_static_simple (G_TYPE_INTERFACE, "GIMarshallingTestsInterface", sizeof @@ -4671,6 +4672,42 @@ gi_marshalling_tests_test_interface_test_int8_in (GIMarshallingTestsInterface *t } +static void test_interface_init (GIMarshallingTestsInterfaceIface *iface); + +G_DEFINE_TYPE_WITH_CODE (GIMarshallingTestsInterfaceImpl, gi_marshalling_tests_interface_impl, G_TYPE_OBJECT, + G_IMPLEMENT_INTERFACE(GI_MARSHALLING_TESTS_TYPE_INTERFACE, test_interface_init)) + +static void +gi_marshalling_tests_interface_impl_test_int8_in (GIMarshallingTestsInterface *self, gint8 in) +{ +} + +static void test_interface_init (GIMarshallingTestsInterfaceIface *iface) +{ + iface->test_int8_in = gi_marshalling_tests_interface_impl_test_int8_in; +} + +static void +gi_marshalling_tests_interface_impl_init (GIMarshallingTestsInterfaceImpl *object) +{ +} + +static void +gi_marshalling_tests_interface_impl_class_init (GIMarshallingTestsInterfaceImplClass *klass) +{ +} + +/** + * gi_marshalling_tests_interface_impl_get_as_interface: + * + * Returns: (transfer none): + */ +GIMarshallingTestsInterface * +gi_marshalling_tests_interface_impl_get_as_interface (GIMarshallingTestsInterfaceImpl *self) +{ + return (GIMarshallingTestsInterface *) self; +} + static void gi_marshalling_tests_interface2_class_init (void *g_iface) { |