comparison src/prpl.c @ 7650:6db061321ec4

[gaim-migrate @ 8293] I completely reverted the dnd sendfile stuff. I thought most of it was pretty decent. The parts for adding the sendfile option to the conv window looked good to me. I can't comment on the dnd stuff. In oscar.c, I didn't see a need to duplicate the oscar_ask_sendfile function. I also don't think the right click->send file option should have been removed... but that's just one man's opinion. Sean, could you please talk to Chip and/or the author of this patch and work towards making it acceptable by you? committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 28 Nov 2003 19:30:45 +0000
parents 6a4d65df3f1c
children 1b8261f374ea
comparison
equal deleted inserted replaced
7649:7762b3bdfe09 7650:6db061321ec4
94 } 94 }
95 } 95 }
96 96
97 return NULL; 97 return NULL;
98 } 98 }
99
100 void gaim_prpl_ask_send_file (GaimConnection *gc, const char *name)
101 {
102 GaimPluginProtocolInfo *prpl_info = NULL;
103
104 if (gc != NULL && gc->prpl != NULL)
105 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl);
106
107 if (prpl_info->has_send_file == NULL || prpl_info->send_file == NULL)
108 return;
109
110 prpl_info->ask_send_file(gc, name);
111 }
112
113
114 gboolean gaim_prpl_has_send_file (GaimConnection *gc, const char *name)
115 {
116 GaimPluginProtocolInfo *prpl_info = NULL;
117
118 if (gc != NULL && gc->prpl != NULL)
119 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl);
120
121 if (prpl_info->has_send_file == NULL || prpl_info->send_file == NULL)
122 return FALSE;
123 if(name)
124 return prpl_info->has_send_file(gc, name);
125
126 return 0;
127
128 }