comparison libgaim/prpl.h @ 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 60b1bc8dbf37
children 28c7e23bcc7e
comparison
equal deleted inserted replaced
14541:33e748a2df15 14542:8ed6ef220b2d
296 void (*send_file)(GaimConnection *, const char *who, const char *filename); 296 void (*send_file)(GaimConnection *, const char *who, const char *filename);
297 GaimXfer *(*new_xfer)(GaimConnection *, const char *who); 297 GaimXfer *(*new_xfer)(GaimConnection *, const char *who);
298 gboolean (*offline_message)(const GaimBuddy *buddy); 298 gboolean (*offline_message)(const GaimBuddy *buddy);
299 299
300 GaimWhiteboardPrplOps *whiteboard_prpl_ops; 300 GaimWhiteboardPrplOps *whiteboard_prpl_ops;
301
302 /* For use in plugins that may understand the underlying protocol */
303 int (*send_raw)(GaimConnection *gc, const char *buf, int len);
301 }; 304 };
302 305
303 #define GAIM_IS_PROTOCOL_PLUGIN(plugin) \ 306 #define GAIM_IS_PROTOCOL_PLUGIN(plugin) \
304 ((plugin)->info->type == GAIM_PLUGIN_PROTOCOL) 307 ((plugin)->info->type == GAIM_PLUGIN_PROTOCOL)
305 308