aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail/e-mail-config-reader.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-10-09 23:13:38 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-10-09 23:13:38 +0800
commit5acc8469ce861b90aad0f2d84061d2b6cc205f80 (patch)
tree3c972dd4cf8a2e3c45a11da4b480ca169461eee4 /modules/mail/e-mail-config-reader.h
parentc3eacfd37e5275942635c069e6f20eb0dd22f6be (diff)
downloadgsoc2013-evolution-5acc8469ce861b90aad0f2d84061d2b6cc205f80.tar
gsoc2013-evolution-5acc8469ce861b90aad0f2d84061d2b6cc205f80.tar.gz
gsoc2013-evolution-5acc8469ce861b90aad0f2d84061d2b6cc205f80.tar.bz2
gsoc2013-evolution-5acc8469ce861b90aad0f2d84061d2b6cc205f80.tar.lz
gsoc2013-evolution-5acc8469ce861b90aad0f2d84061d2b6cc205f80.tar.xz
gsoc2013-evolution-5acc8469ce861b90aad0f2d84061d2b6cc205f80.tar.zst
gsoc2013-evolution-5acc8469ce861b90aad0f2d84061d2b6cc205f80.zip
EMailConfigReader: Use G_DEFINE_DYNAMIC_TYPE.
Follow the usual GObject conventions.
Diffstat (limited to 'modules/mail/e-mail-config-reader.h')
-rw-r--r--modules/mail/e-mail-config-reader.h39
1 files changed, 37 insertions, 2 deletions
diff --git a/modules/mail/e-mail-config-reader.h b/modules/mail/e-mail-config-reader.h
index 6dd856c97c..b808320ced 100644
--- a/modules/mail/e-mail-config-reader.h
+++ b/modules/mail/e-mail-config-reader.h
@@ -19,12 +19,47 @@
#ifndef E_MAIL_CONFIG_READER_H
#define E_MAIL_CONFIG_READER_H
-#include <glib-object.h>
+#include <libebackend/libebackend.h>
+
+/* Standard GObject macros */
+#define E_TYPE_MAIL_CONFIG_READER \
+ (e_mail_config_reader_get_type ())
+#define E_MAIL_CONFIG_READER(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST \
+ ((obj), E_TYPE_MAIL_CONFIG_READER, EMailConfigReader))
+#define E_MAIL_CONFIG_READER_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_CAST \
+ ((cls), E_TYPE_MAIL_CONFIG_READER, EMailConfigReaderClass))
+#define E_IS_MAIL_CONFIG_READER(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE \
+ ((obj), E_TYPE_MAIL_CONFIG_READER))
+#define E_IS_MAIL_CONFIG_READER_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_TYPE \
+ ((cls), E_TYPE_MAIL_CONFIG_READER))
+#define E_MAIL_CONFIG_READER_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS \
+ ((obj), E_TYPE_MAIL_CONFIG_READER, EMailConfigReaderClass))
G_BEGIN_DECLS
-void e_mail_config_reader_register_type (GTypeModule *type_module);
+typedef struct _EMailConfigReader EMailConfigReader;
+typedef struct _EMailConfigReaderClass EMailConfigReaderClass;
+typedef struct _EMailConfigReaderPrivate EMailConfigReaderPrivate;
+
+struct _EMailConfigReader {
+ EExtension parent;
+ EMailConfigReaderPrivate *priv;
+};
+
+struct _EMailConfigReaderClass {
+ EExtensionClass parent_class;
+};
+
+GType e_mail_config_reader_get_type (void) G_GNUC_CONST;
+void e_mail_config_reader_type_register
+ (GTypeModule *type_module);
G_END_DECLS
#endif /* E_MAIL_CONFIG_READER_H */
+