Some error handling/reporting fixes.
[pygobject.git] / tests / test-thread.h
blobdb12fe4343627ffd597c0a43d2674bca6b24fa62
1 #include <glib-object.h>
3 typedef struct {
4 GObject parent;
5 GThread *thread;
6 } TestThread;
8 typedef struct {
9 GObjectClass parent_class;
10 void (*emit_signal) (TestThread *sink);
11 void (*from_thread) (TestThread *sink);
12 } TestThreadClass;
14 GType test_thread_get_type (void);
16 #define TEST_TYPE_THREAD (test_thread_get_type())
17 #define TEST_THREAD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_TYPE_THREAD, TestTHREAD))
18 #define TEST_THREAD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TEST_TYPE_THREAD, TestTHREADClass))
19 #define TEST_IS_THREAD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TEST_TYPE_THREAD))
20 #define TEST_IS_THREAD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), TEST_TYPE_THREAD))
21 #define TEST_THREAD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), TEST_TYPE_THREAD, TestTHREADClass))