/soc/2013/ankitkv/gobjectification: 5e129f11e6c6: Changed purple...
Ankit Vani
a at nevitus.org
Sat Aug 31 13:49:28 EDT 2013
Changeset: 5e129f11e6c667bdc727206f91f21c9095ff18d8
Author: Ankit Vani <a at nevitus.org>
Date: 2013-08-31 23:18 +0530
Branch: soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/5e129f11e6c6
Description:
Changed purple_conversation_get_max_message_size() to use the new protocol API
diffstat:
libpurple/conversation.c | 14 ++++----------
1 files changed, 4 insertions(+), 10 deletions(-)
diffs (30 lines):
diff --git a/libpurple/conversation.c b/libpurple/conversation.c
--- a/libpurple/conversation.c
+++ b/libpurple/conversation.c
@@ -889,22 +889,16 @@ purple_conversation_do_command(PurpleCon
gssize
purple_conversation_get_max_message_size(PurpleConversation *conv)
{
- PurplePlugin *prpl;
- PurplePluginProtocolInfo *prpl_info;
+ PurpleProtocol *protocol;
g_return_val_if_fail(conv != NULL, 0);
- prpl = purple_connection_get_prpl(
+ protocol = purple_connection_get_protocol_info(
purple_conversation_get_connection(conv));
- g_return_val_if_fail(prpl != NULL, 0);
- prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl);
- g_return_val_if_fail(prpl_info != NULL, 0);
+ g_return_val_if_fail(protocol != NULL, 0);
- if (!PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl_info, get_max_message_size))
- return 0;
-
- return prpl_info->get_max_message_size(conv);
+ return purple_protocol_iface_get_max_message_size(protocol, conv);
}
/**************************************************************************
More information about the Commits
mailing list