-
Notifications
You must be signed in to change notification settings - Fork 3
/
test-unknown.c
37 lines (30 loc) · 908 Bytes
/
test-unknown.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "test-unknown.h"
G_DEFINE_TYPE_WITH_CODE (TestUnknown, test_unknown, G_TYPE_OBJECT,
G_IMPLEMENT_INTERFACE (TEST_TYPE_INTERFACE, NULL));
static void test_unknown_init (TestUnknown *self) {}
static void test_unknown_class_init (TestUnknownClass *klass) {}
GType
test_interface_get_type (void)
{
static GType gtype = 0;
if (!gtype)
{
static const GTypeInfo info =
{
sizeof (TestInterface), /* class_size */
NULL, /* base_init */
NULL, /* base_finalize */
NULL,
NULL, /* class_finalize */
NULL, /* class_data */
0,
0, /* n_preallocs */
NULL
};
gtype =
g_type_register_static (G_TYPE_INTERFACE, "TestInterface",
&info, 0);
g_type_interface_add_prerequisite (gtype, G_TYPE_OBJECT);
}
return gtype;
}