From bc90469e7f3bfd31dc6530c2d1ba1cc519a8a3a7 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 23 Apr 2010 10:28:53 -0400 Subject: Camel is now GObject-based. --- mail/em-sync-stream.h | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'mail/em-sync-stream.h') diff --git a/mail/em-sync-stream.h b/mail/em-sync-stream.h index b8684ac109..593079021e 100644 --- a/mail/em-sync-stream.h +++ b/mail/em-sync-stream.h @@ -33,16 +33,24 @@ requests are always handled in the main gui thread in the correct order. #include #include -#define EM_SYNC_STREAM_TYPE \ +/* Standard GObject macros */ +#define EM_TYPE_SYNC_STREAM \ (em_sync_stream_get_type ()) #define EM_SYNC_STREAM(obj) \ - (CAMEL_CHECK_CAST \ - ((obj), EM_SYNC_STREAM_TYPE, EMSyncStream)) + (G_TYPE_CHECK_INSTANCE_CAST \ + ((obj), EM_TYPE_SYNC_STREAM, EMSyncStream)) #define EM_SYNC_STREAM_CLASS(cls) \ - (CAMEL_CHECK_CLASS_CAST \ - ((cls), EM_SYNC_STREAM_TYPE, EMSyncStreamClass)) + (G_TYPE_CHECK_CLASS_CAST \ + ((cls), EM_TYPE_SYNC_STREAM, EMSyncStreamClass)) #define EM_IS_SYNC_STREAM(obj) \ - (CAMEL_CHECK_TYPE ((obj), EM_SYNC_STREAM_TYPE)) + (G_TYPE_CHECK_INSTANCE_TYPE \ + ((obj), EM_TYPE_SYNC_STREAM)) +#define EM_IS_SYNC_STREAM_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_TYPE \ + ((cls), EM_TYPE_SYNC_STREAM)) +#define EM_SYNC_STREAM_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS \ + ((obj), EM_TYPE_SYNC_STREAM, EMSyncStreamClass)) G_BEGIN_DECLS @@ -66,7 +74,7 @@ struct _EMSyncStreamClass { gint (*sync_flush) (CamelStream *stream); }; -CamelType em_sync_stream_get_type (void); +GType em_sync_stream_get_type (void); void em_sync_stream_set_buffer_size (EMSyncStream *stream, gsize size); -- cgit