Mercurial > pidgin
comparison src/prpl.c @ 7631:ea2d07ad05a9
[gaim-migrate @ 8255]
long car rides and a power inverter can generate some interesting code tweaks
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 25 Nov 2003 07:16:11 +0000 |
parents | 994b2d782711 |
children | 6a4d65df3f1c |
comparison
equal
deleted
inserted
replaced
7630:2df4d470c12a | 7631:ea2d07ad05a9 |
---|---|
95 } | 95 } |
96 | 96 |
97 return NULL; | 97 return NULL; |
98 } | 98 } |
99 | 99 |
100 void gaim_prpl_ask_send_file (GaimConnection *gc, char *name) | 100 void gaim_prpl_ask_send_file (GaimConnection *gc, const char *name) |
101 { | 101 { |
102 GaimPluginProtocolInfo *prpl_info = NULL; | 102 GaimPluginProtocolInfo *prpl_info = NULL; |
103 | 103 |
104 if (gc != NULL && gc->prpl != NULL) | 104 if (gc != NULL && gc->prpl != NULL) |
105 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | 105 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); |
106 | 106 |
107 if (prpl_info->has_send_file == NULL || prpl_info->send_file == NULL) | 107 if (prpl_info->has_send_file == NULL || prpl_info->send_file == NULL) |
108 return FALSE; | 108 return; |
109 | 109 |
110 prpl_info->ask_send_file(gc, name); | 110 prpl_info->ask_send_file(gc, name); |
111 } | 111 } |
112 | 112 |
113 | 113 |
114 gboolean gaim_prpl_has_send_file (GaimConnection *gc, char *name) | 114 gboolean gaim_prpl_has_send_file (GaimConnection *gc, const char *name) |
115 { | 115 { |
116 GaimPluginProtocolInfo *prpl_info = NULL; | 116 GaimPluginProtocolInfo *prpl_info = NULL; |
117 | 117 |
118 if (gc != NULL && gc->prpl != NULL) | 118 if (gc != NULL && gc->prpl != NULL) |
119 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | 119 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); |