Mercurial > pidgin.yaz
comparison src/prpl.h @ 12143:cbebda5f019c
[gaim-migrate @ 14444]
SF Patch #1360399 from Evan Schoenberg (evands)
"I discussed this previously with Mark and he said it'd be fine.
This factors out the part of the send_file function which creates a new
GaimXfer into a separate prpl function, new_xfer. It's called in each of the
existing send_file functions.
This is needed so that another client (okay, Adium) can get a new
outgoing GaimXfer from a prpl without depending upon the specific ft.c
logic of send_file; previously I was adding a duplicate method to each prpl
and then calling it directly."
I fixed a couple small bugs in this. Otherwise, it looks good, and seems like a reasonable libgaim request.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sat, 19 Nov 2005 00:26:12 +0000 |
parents | e67993da8a22 |
children | 4d3119205a33 |
comparison
equal
deleted
inserted
replaced
12142:0c672be21798 | 12143:cbebda5f019c |
---|---|
78 * field in the prpl info struct for protocols that couldn't care less. | 78 * field in the prpl info struct for protocols that couldn't care less. |
79 */ | 79 */ |
80 #define NO_BUDDY_ICONS {NULL, 0, 0, 0, 0, 0} | 80 #define NO_BUDDY_ICONS {NULL, 0, 0, 0, 0, 0} |
81 | 81 |
82 #include "blist.h" | 82 #include "blist.h" |
83 #include "ft.h" | |
83 #include "proxy.h" | 84 #include "proxy.h" |
84 #include "plugin.h" | 85 #include "plugin.h" |
85 #include "media.h" | 86 #include "media.h" |
86 #include "roomlist.h" | 87 #include "roomlist.h" |
87 #include "status.h" | 88 #include "status.h" |
307 void (*roomlist_expand_category)(GaimRoomlist *list, GaimRoomlistRoom *category); | 308 void (*roomlist_expand_category)(GaimRoomlist *list, GaimRoomlistRoom *category); |
308 | 309 |
309 /* file transfer callbacks */ | 310 /* file transfer callbacks */ |
310 gboolean (*can_receive_file)(GaimConnection *, const char *who); | 311 gboolean (*can_receive_file)(GaimConnection *, const char *who); |
311 void (*send_file)(GaimConnection *, const char *who, const char *filename); | 312 void (*send_file)(GaimConnection *, const char *who, const char *filename); |
312 | 313 GaimXfer *(*new_xfer)(GaimConnection *, const char *who); |
314 | |
313 GaimWhiteboardPrplOps *whiteboard_prpl_ops; | 315 GaimWhiteboardPrplOps *whiteboard_prpl_ops; |
314 GaimMediaPrplOps *media_prpl_ops; | 316 GaimMediaPrplOps *media_prpl_ops; |
315 }; | 317 }; |
316 | 318 |
317 #define GAIM_IS_PROTOCOL_PLUGIN(plugin) \ | 319 #define GAIM_IS_PROTOCOL_PLUGIN(plugin) \ |