diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2011-02-22 18:44:15 -0500 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2011-02-22 18:44:15 -0500 |
commit | 2fc6dc7fe60e1ea689557d464f45ceea2119cd73 (patch) | |
tree | 19030a7503d9edb53b5ec1cd1e9c2d537c7c2ebf /telepathy-logger/text-channel.c | |
parent | b24f7974e6afb33e03b986339fab4595b07e4419 (diff) | |
download | telepathy-logger-2fc6dc7fe60e1ea689557d464f45ceea2119cd73.tar.gz |
Make TplEntity constructors public
Implement a generic constructor along with making public all TplEntity
constructors. This is required now that the LogManager API require
TplEntity object instead of id/is_room pair.
Diffstat (limited to 'telepathy-logger/text-channel.c')
-rw-r--r-- | telepathy-logger/text-channel.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/telepathy-logger/text-channel.c b/telepathy-logger/text-channel.c index 28abfe2..1645510 100644 --- a/telepathy-logger/text-channel.c +++ b/telepathy-logger/text-channel.c @@ -1074,7 +1074,7 @@ on_sent_signal_cb (TpChannel *proxy, /* Initialize data for TplEntity */ me = _tpl_text_channel_get_my_contact (tpl_text); - sender = _tpl_entity_new_from_tp_contact (me, TPL_ENTITY_SELF); + sender = tpl_entity_new_from_tp_contact (me, TPL_ENTITY_SELF); if (!_tpl_text_channel_is_chatroom (tpl_text)) { @@ -1085,7 +1085,7 @@ on_sent_signal_cb (TpChannel *proxy, GUINT_TO_POINTER (handle)); g_assert (remote != NULL); - receiver = _tpl_entity_new_from_tp_contact (remote, TPL_ENTITY_CONTACT); + receiver = tpl_entity_new_from_tp_contact (remote, TPL_ENTITY_CONTACT); DEBUG ("sent:\n\tlog_id=\"%s\"\n\tto=\"%s " "(%s)\"\n\tfrom=\"%s (%s)\"\n\tmsg=\"%s\"", @@ -1099,7 +1099,7 @@ on_sent_signal_cb (TpChannel *proxy, } else { - receiver = _tpl_entity_new_from_room_id ( + receiver = tpl_entity_new_from_room_id ( _tpl_text_channel_get_chatroom_id (tpl_text)); DEBUG ("sent:\n\tlog_id=\"%s\"\n\tto " @@ -1166,18 +1166,18 @@ keepon_on_receiving_signal (TplTextChannel *tpl_text, TplEntity *sender; TplEntity *receiver; - sender = _tpl_entity_new_from_tp_contact (remote, TPL_ENTITY_CONTACT); + sender = tpl_entity_new_from_tp_contact (remote, TPL_ENTITY_CONTACT); if (_tpl_text_channel_is_chatroom (tpl_text)) { const gchar *receiver_id = _tpl_text_channel_get_chatroom_id (tpl_text); - receiver = _tpl_entity_new_from_room_id (receiver_id); + receiver = tpl_entity_new_from_room_id (receiver_id); } else { TpContact *me; me = _tpl_text_channel_get_my_contact (tpl_text); - receiver = _tpl_entity_new_from_tp_contact (me, TPL_ENTITY_SELF); + receiver = tpl_entity_new_from_tp_contact (me, TPL_ENTITY_SELF); } /* Initialize TplTextEvent */ |