summaryrefslogtreecommitdiff
path: root/telepathy-glib/message.h
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-10-14 14:32:53 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-12-09 13:56:26 +0100
commit350d041c697d9ee50631cbe3d595978b8c559bf1 (patch)
tree602bc91380a8bb44e45ea86d5cacfa8da1b30173 /telepathy-glib/message.h
parent6cbc8e41c6fdf8f54583aca651a1deb4b9eeebd6 (diff)
downloadtelepathy-glib-350d041c697d9ee50631cbe3d595978b8c559bf1.tar.gz
make a GObject of TpMessage
Basically just the boilerplate for now, we still use it as a struct.
Diffstat (limited to 'telepathy-glib/message.h')
-rw-r--r--telepathy-glib/message.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/telepathy-glib/message.h b/telepathy-glib/message.h
index ff255c4ce..07150fce8 100644
--- a/telepathy-glib/message.h
+++ b/telepathy-glib/message.h
@@ -23,7 +23,17 @@
G_BEGIN_DECLS
+#define TP_TYPE_MESSAGE (tp_message_get_type ())
+#define TP_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TP_TYPE_MESSAGE, TpMessage))
+#define TP_MESSAGE_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), TP_TYPE_MESSAGE, TpMessageClass))
+#define TP_IS_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TP_TYPE_MESSAGE))
+#define TP_IS_MESSAGE_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), TP_TYPE_MESSAGE))
+#define TP_MESSAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TP_TYPE_MESSAGE, TpMessageClass))
+
typedef struct _TpMessage TpMessage;
+typedef struct _TpMessageClass TpMessageClass;
+
+GType tp_message_get_type (void);
TpMessage *tp_message_new (TpBaseConnection *connection, guint initial_parts,
guint size_hint) G_GNUC_WARN_UNUSED_RESULT;