1 #include <glib-object.h>
10 GObjectClass parent_class
;
13 #define TEST_TYPE_UNKNOWN (test_unknown_get_type())
14 #define TEST_UNKNOWN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_TYPE_UNKNOWN, TestUnknown))
15 #define TEST_UNKNOWN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TEST_TYPE_UNKNOWN, TestUnknownClass))
16 #define TEST_IS_UNKNOWN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TEST_TYPE_UNKNOWN))
17 #define TEST_IS_UNKNOWN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), TEST_TYPE_UNKNOWN))
18 #define TEST_UNKNOWN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), TEST_TYPE_UNKNOWN, TestUnknownClass))
20 GType
test_unknown_get_type (void);
23 typedef struct _TestInterface TestInterface
;
24 typedef struct _TestInterfaceIface TestInterfaceIface
;
26 struct _TestInterfaceIface
28 GTypeInterface g_iface
;
30 void (* iface_method
) (TestInterface
*iface
);
33 #define TEST_TYPE_INTERFACE (test_interface_get_type ())
34 #define TEST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_TYPE_INTERFACE, TestInterface))
35 #define TEST_IS_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TEST_TYPE_INTERFACE))
36 #define TEST_INTERFACE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TEST_TYPE_INTERFACE, TestInterfaceIface))
38 GType
test_interface_get_type (void);
40 void test_interface_iface_method (TestInterface
*iface
);