diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-04-15 21:17:07 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-04-21 10:25:29 +0800 |
commit | 9ebc1143eb2917b95ffd1922621c4d3971d2ac38 (patch) | |
tree | 439ebc4c69c4ab77f703198c749ab000bcaf2f94 /libempathy/empathy-message.h | |
parent | d13d80a35e631dca9aa71e7419d08b4094d075f8 (diff) | |
download | gsoc2013-empathy-9ebc1143eb2917b95ffd1922621c4d3971d2ac38.tar gsoc2013-empathy-9ebc1143eb2917b95ffd1922621c4d3971d2ac38.tar.gz gsoc2013-empathy-9ebc1143eb2917b95ffd1922621c4d3971d2ac38.tar.bz2 gsoc2013-empathy-9ebc1143eb2917b95ffd1922621c4d3971d2ac38.tar.lz gsoc2013-empathy-9ebc1143eb2917b95ffd1922621c4d3971d2ac38.tar.xz gsoc2013-empathy-9ebc1143eb2917b95ffd1922621c4d3971d2ac38.tar.zst gsoc2013-empathy-9ebc1143eb2917b95ffd1922621c4d3971d2ac38.zip |
factor out empathy_message_new_from_tp_message
Diffstat (limited to 'libempathy/empathy-message.h')
-rw-r--r-- | libempathy/empathy-message.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libempathy/empathy-message.h b/libempathy/empathy-message.h index 1db0eff60..cb57f0755 100644 --- a/libempathy/empathy-message.h +++ b/libempathy/empathy-message.h @@ -26,6 +26,7 @@ #define __EMPATHY_MESSAGE_H__ #include <glib-object.h> +#include <telepathy-glib/message.h> #include <telepathy-logger/event.h> #include "empathy-contact.h" @@ -53,8 +54,12 @@ struct _EmpathyMessageClass { }; GType empathy_message_get_type (void) G_GNUC_CONST; + EmpathyMessage * empathy_message_new (const gchar *body); EmpathyMessage * empathy_message_from_tpl_log_event (TplEvent *logevent); +EmpathyMessage * empathy_message_new_from_tp_message (TpMessage *tp_msg, + gboolean incoming); + TpChannelTextMessageType empathy_message_get_tptype (EmpathyMessage *message); void empathy_message_set_tptype (EmpathyMessage *message, TpChannelTextMessageType type); |