Mercurial > pidgin
diff src/server.c @ 7619:994b2d782711
[gaim-migrate @ 8243]
Juan Pablo Mendoza made file sending a little more generic, UI-wise, and
added drag-and-drop file sending, as well as a Send File in the
conversation menu. Congrats Juan on the $400 bounty.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Mon, 24 Nov 2003 02:35:27 +0000 |
| parents | 532635bc38c1 |
| children | 6db061321ec4 |
line wrap: on
line diff
--- a/src/server.c Mon Nov 24 02:28:42 2003 +0000 +++ b/src/server.c Mon Nov 24 02:35:27 2003 +0000 @@ -291,6 +291,19 @@ return val; } +void serv_send_file(GaimConnection *gc, const char *name, const char *file) +{ + GaimPluginProtocolInfo *prpl_info = NULL; + + if (gc != NULL && gc->prpl != NULL) + prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); + + if (prpl_info->send_file == NULL || file == NULL || name == NULL) + return; + + prpl_info->send_file(gc, name, file); +} + void serv_get_info(GaimConnection *g, const char *name) { GaimPluginProtocolInfo *prpl_info = NULL;
