comparison libgaim/protocols/msn/msn.c @ 14542:8ed6ef220b2d

[gaim-migrate @ 17263] send_raw() prpl function allows plugins with knowledge of a protocol to send its own custom packets. Not practical for all protocols, but should be super useful on Jabber when coupled with Nathan's signals. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Tue, 12 Sep 2006 21:57:15 +0000
parents 8bc34ef93e55
children ad44ab4442b1
comparison
equal deleted inserted replaced
14541:33e748a2df15 14542:8ed6ef220b2d
878 878
879 msn_message_destroy(msg); 879 msn_message_destroy(msg);
880 880
881 return MSN_TYPING_SEND_TIMEOUT; 881 return MSN_TYPING_SEND_TIMEOUT;
882 } 882 }
883
884 static int
885 msn_send_raw(GaimConnection *gc, const char *buf, int len)
886 {
887 MsnServConn *servconn = (MsnServConn*)gc->proto_data;
888 return msn_servconn_write(servconn, buf, len);
889 }
890
883 891
884 static void 892 static void
885 msn_set_status(GaimAccount *account, GaimStatus *status) 893 msn_set_status(GaimAccount *account, GaimStatus *status)
886 { 894 {
887 GaimConnection *gc; 895 GaimConnection *gc;
2010 msn_can_receive_file, /* can_receive_file */ 2018 msn_can_receive_file, /* can_receive_file */
2011 msn_send_file, /* send_file */ 2019 msn_send_file, /* send_file */
2012 msn_new_xfer, /* new_xfer */ 2020 msn_new_xfer, /* new_xfer */
2013 NULL, /* offline_message */ 2021 NULL, /* offline_message */
2014 NULL, /* whiteboard_prpl_ops */ 2022 NULL, /* whiteboard_prpl_ops */
2023 msn_send_raw, /* send_raw */
2015 }; 2024 };
2016 2025
2017 static GaimPluginInfo info = 2026 static GaimPluginInfo info =
2018 { 2027 {
2019 GAIM_PLUGIN_MAGIC, 2028 GAIM_PLUGIN_MAGIC,