aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-sync-stream.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-04-23 22:28:53 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-04-24 23:05:27 +0800
commitbc90469e7f3bfd31dc6530c2d1ba1cc519a8a3a7 (patch)
treef5d0cc91fc1568431e0b457406a9b3ea21157e0e /mail/em-sync-stream.h
parentf862e946b83d5f70001c3d81290ecc8a0d8ca2a0 (diff)
downloadgsoc2013-evolution-bc90469e7f3bfd31dc6530c2d1ba1cc519a8a3a7.tar.gz
gsoc2013-evolution-bc90469e7f3bfd31dc6530c2d1ba1cc519a8a3a7.tar.zst
gsoc2013-evolution-bc90469e7f3bfd31dc6530c2d1ba1cc519a8a3a7.zip
Camel is now GObject-based.
Diffstat (limited to 'mail/em-sync-stream.h')
-rw-r--r--mail/em-sync-stream.h22
1 files changed, 15 insertions, 7 deletions
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 <glib.h>
#include <camel/camel.h>
-#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);