diff libgaim/protocols/simple/simple.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 9ad313800b19
children eb2152e14df9
line wrap: on
line diff
--- a/libgaim/protocols/simple/simple.c	Tue Sep 12 20:11:56 2006 +0000
+++ b/libgaim/protocols/simple/simple.c	Tue Sep 12 21:57:15 2006 +0000
@@ -521,6 +521,12 @@
 	}
 }
 
+static void simple_send_raw(GaimConnection *gc, const char *buf, int len)
+{
+	sendout_pkt(gc, buf);
+	return len;
+}
+
 static void sendout_sipmsg(struct simple_account_data *sip, struct sipmsg *msg) {
 	GSList *tmp = msg->headers;
 	gchar *name;
@@ -1792,6 +1798,7 @@
 	NULL,					/* new_xfer */
 	NULL,					/* offline_message */
 	NULL,					/* whiteboard_prpl_ops */
+	simple_send_raw,			/* send_raw */
 };