diff options
author | Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im> | 2013-08-26 17:21:22 +0200 |
---|---|---|
committer | Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im> | 2013-08-26 17:21:22 +0200 |
commit | 70560762a28f1242efeb209ab9df3dc6a3fa35be (patch) | |
tree | 7ea4ebb8b7e71a3dc7a9e9d10cd374f111215473 /libpurple/protocols/yahoo | |
parent | 08389570f3d83c90b4e16f3ca6b39a10caf15a63 (diff) | |
download | pidgin-70560762a28f1242efeb209ab9df3dc6a3fa35be.tar.gz |
Extend prpl with max message length callback
Diffstat (limited to 'libpurple/protocols/yahoo')
-rw-r--r-- | libpurple/protocols/yahoo/libyahoo.c | 3 | ||||
-rw-r--r-- | libpurple/protocols/yahoo/libyahoojp.c | 3 | ||||
-rw-r--r-- | libpurple/protocols/yahoo/libymsg.c | 6 | ||||
-rw-r--r-- | libpurple/protocols/yahoo/libymsg.h | 1 |
4 files changed, 11 insertions, 2 deletions
diff --git a/libpurple/protocols/yahoo/libyahoo.c b/libpurple/protocols/yahoo/libyahoo.c index 5c58ad072c..777ecb37bb 100644 --- a/libpurple/protocols/yahoo/libyahoo.c +++ b/libpurple/protocols/yahoo/libyahoo.c @@ -264,7 +264,8 @@ static PurplePluginProtocolInfo prpl_info = NULL, /* get_media_caps */ NULL, /* get_moods */ NULL, /* set_public_alias */ - NULL /* get_public_alias */ + NULL, /* get_public_alias */ + yahoo_get_max_message_size }; static PurplePluginInfo info = diff --git a/libpurple/protocols/yahoo/libyahoojp.c b/libpurple/protocols/yahoo/libyahoojp.c index 69928ca1fa..e6d5471030 100644 --- a/libpurple/protocols/yahoo/libyahoojp.c +++ b/libpurple/protocols/yahoo/libyahoojp.c @@ -162,7 +162,8 @@ static PurplePluginProtocolInfo prpl_info = NULL, /* get_media_caps */ NULL, /* get_moods */ NULL, /* set_public_alias */ - NULL /* get_public_alias */ + NULL, /* get_public_alias */ + yahoo_get_max_message_size }; static PurplePluginInfo info = diff --git a/libpurple/protocols/yahoo/libymsg.c b/libpurple/protocols/yahoo/libymsg.c index 74bc7b97fc..f5b43ff481 100644 --- a/libpurple/protocols/yahoo/libymsg.c +++ b/libpurple/protocols/yahoo/libymsg.c @@ -5134,3 +5134,9 @@ GList *yahoo_attention_types(PurpleAccount *account) return list; } +gsize +yahoo_get_max_message_size(PurpleConnection *gc) +{ + /* got from pidgin-otr */ + return 799; +} diff --git a/libpurple/protocols/yahoo/libymsg.h b/libpurple/protocols/yahoo/libymsg.h index 5f1fc9b17a..bd41b053ce 100644 --- a/libpurple/protocols/yahoo/libymsg.h +++ b/libpurple/protocols/yahoo/libymsg.h @@ -384,6 +384,7 @@ GList *yahoo_attention_types(PurpleAccount *account); GList *yahoo_actions(PurplePlugin *plugin, gpointer context); void yahoopurple_register_commands(void); +gsize yahoo_get_max_message_size(PurpleConnection *gc); PurpleCmdRet yahoopurple_cmd_buzz(PurpleConversation *c, const gchar *cmd, gchar **args, gchar **error, void *data); PurpleCmdRet yahoopurple_cmd_chat_join(PurpleConversation *conv, const char *cmd, char **args, char **error, void *data); |