summaryrefslogtreecommitdiffstats
path: root/tests/libtestgi.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtestgi.c')
-rw-r--r--tests/libtestgi.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/libtestgi.c b/tests/libtestgi.c
index 87f95ae..613c0d9 100644
--- a/tests/libtestgi.c
+++ b/tests/libtestgi.c
@@ -3394,6 +3394,29 @@ test_gi_sub_object_overwritten_method (TestGISubObject *object)
g_assert(TESTGI_OBJECT(object)->int_ == 0);
}
+/* Interfaces */
+
+static void
+test_gi_interface_class_init(void *g_iface)
+{
+}
+
+GType
+test_gi_interface_get_type(void)
+{
+ static GType type = 0;
+ if (type == 0) {
+ type = g_type_register_static_simple (G_TYPE_INTERFACE,
+ "TestGIInterface",
+ sizeof (TestGIInterfaceIface),
+ (GClassInitFunc) test_gi_interface_class_init,
+ 0, NULL, 0);
+ }
+
+ return type;
+}
+
+
/**
* test_gi_int_out_out:
* int0: (out):