| 541 } |
541 } |
| 542 |
542 |
| 543 int jabber_prpl_send_raw(PurpleConnection *gc, const char *buf, int len) |
543 int jabber_prpl_send_raw(PurpleConnection *gc, const char *buf, int len) |
| 544 { |
544 { |
| 545 JabberStream *js = purple_connection_get_protocol_data(gc); |
545 JabberStream *js = purple_connection_get_protocol_data(gc); |
| |
546 |
| |
547 g_return_val_if_fail(js != NULL, -1); |
| |
548 /* TODO: It's probably worthwhile to restrict this to when the account |
| |
549 * state is CONNECTED, but I can /almost/ envision reasons for wanting |
| |
550 * to do things during the connection process. |
| |
551 */ |
| |
552 |
| 546 jabber_send_raw(js, buf, len); |
553 jabber_send_raw(js, buf, len); |
| 547 return len; |
554 return len; |
| 548 } |
555 } |
| 549 |
556 |
| 550 void jabber_send_signal_cb(PurpleConnection *pc, xmlnode **packet, |
557 void jabber_send_signal_cb(PurpleConnection *pc, xmlnode **packet, |