Back to index

unity  6.0.0
test_glib_signals_utils.h
Go to the documentation of this file.
00001 /*
00002  * GObject Class to allow for extensive testing of our Signal wrapper
00003  */
00004 
00005 #ifndef _TEST_SIGNALS_H_
00006 #define _TEST_SIGNALS_H_
00007 
00008 #include <glib-object.h>
00009 
00010 G_BEGIN_DECLS
00011 
00012 #define TEST_TYPE_SIGNALS (test_signals_get_type ())
00013 
00014 #define TestSignals(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
00015   TEST_TYPE_SIGNALS, TestSignals))
00016 
00017 #define TestSignals_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
00018   TEST_TYPE_SIGNALS, TestSignalsClass))
00019 
00020 #define TEST_IS_SIGNALS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
00021   TEST_TYPE_SIGNALS))
00022 
00023 #define TEST_IS_SIGNALS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\
00024   TEST_TYPE_SIGNALS))
00025 
00026 #define TestSignals_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
00027   TEST_TYPE_SIGNALS, TestSignalsClass))
00028 
00029 typedef struct _TEST_SIGNALS        TestSignals;
00030 typedef struct _TEST_SIGNALSClass   TestSignalsClass;
00031 
00032 struct _TEST_SIGNALS
00033 {
00034   GObject parent;
00035 };
00036 
00037 struct _TEST_SIGNALSClass
00038 {
00039   GObjectClass parent_class;
00040 };
00041 
00042 GType test_signals_get_type(void) G_GNUC_CONST;
00043 
00044 G_END_DECLS
00045 
00046 #endif /* _TEST_SIGNALS_H_ */