Mercurial > pidgin
diff libgaim/protocols/jabber/jabber.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 | 289490ee84d1 |
children | 9cbf4d3ef444 |
line wrap: on
line diff
--- a/libgaim/protocols/jabber/jabber.c Tue Sep 12 20:11:56 2006 +0000 +++ b/libgaim/protocols/jabber/jabber.c Tue Sep 12 21:57:15 2006 +0000 @@ -325,7 +325,14 @@ gaim_circ_buffer_append(js->write_buffer, data + ret, len - ret); } + return; +} +int jabber_prpl_send_raw(GaimConnection *gc, const char *buf, int len) +{ + JabberStream *js = (JabberStream*)gc->proto_data; + jabber_send_raw(js, buf, len); + return len; } void jabber_send(JabberStream *js, xmlnode *packet) @@ -1884,6 +1891,7 @@ jabber_si_new_xfer, /* new_xfer */ jabber_offline_message, /* offline_message */ NULL, /* whiteboard_prpl_ops */ + jabber_send_raw, /* send_raw */ }; static gboolean load_plugin(GaimPlugin *plugin)