comparison src/server.c @ 3466:7a3f16a375a5

[gaim-migrate @ 3516] some patches from some people. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 29 Aug 2002 01:47:15 +0000
parents 222e23f91092
children d33ec392a5e1
comparison
equal deleted inserted replaced
3465:ec437d73b2ee 3466:7a3f16a375a5
177 { 177 {
178 if (g && g_slist_find(connections, g) && g->prpl && g->prpl->get_dir) 178 if (g && g_slist_find(connections, g) && g->prpl && g->prpl->get_dir)
179 g->prpl->get_dir(g, name); 179 g->prpl->get_dir(g, name);
180 } 180 }
181 181
182 void serv_set_dir(struct gaim_connection *g, char *first, char *middle, char *last, char *maiden, 182 void serv_set_dir(struct gaim_connection *g, const char *first, const char *middle, const char *last, const char *maiden,
183 char *city, char *state, char *country, int web) 183 const char *city, const char *state, const char *country, int web)
184 { 184 {
185 if (g && g_slist_find(connections, g) && g->prpl && g->prpl->set_dir) 185 if (g && g_slist_find(connections, g) && g->prpl && g->prpl->set_dir)
186 g->prpl->set_dir(g, first, middle, last, maiden, city, state, country, web); 186 g->prpl->set_dir(g, first, middle, last, maiden, city, state, country, web);
187 } 187 }
188 188
189 void serv_dir_search(struct gaim_connection *g, char *first, char *middle, char *last, char *maiden, 189 void serv_dir_search(struct gaim_connection *g, const char *first, const char *middle, const char *last, const char *maiden,
190 char *city, char *state, char *country, char *email) 190 const char *city, const char *state, const char *country, const char *email)
191 { 191 {
192 if (g && g_slist_find(connections, g) && g->prpl && g->prpl->dir_search) 192 if (g && g_slist_find(connections, g) && g->prpl && g->prpl->dir_search)
193 g->prpl->dir_search(g, first, middle, last, maiden, city, state, country, email); 193 g->prpl->dir_search(g, first, middle, last, maiden, city, state, country, email);
194 } 194 }
195 195
236 return; 236 return;
237 g->prpl->set_info(g, info); 237 g->prpl->set_info(g, info);
238 } 238 }
239 } 239 }
240 240
241 void serv_change_passwd(struct gaim_connection *g, char *orig, char *new) 241 void serv_change_passwd(struct gaim_connection *g, const char *orig, const char *new)
242 { 242 {
243 if (g && g_slist_find(connections, g) && g->prpl && g->prpl->change_passwd) 243 if (g && g_slist_find(connections, g) && g->prpl && g->prpl->change_passwd)
244 g->prpl->change_passwd(g, orig, new); 244 g->prpl->change_passwd(g, orig, new);
245 } 245 }
246 246
247 void serv_add_buddy(struct gaim_connection *g, char *name) 247 void serv_add_buddy(struct gaim_connection *g, const char *name)
248 { 248 {
249 if (g && g_slist_find(connections, g) && g->prpl && g->prpl->add_buddy) 249 if (g && g_slist_find(connections, g) && g->prpl && g->prpl->add_buddy)
250 g->prpl->add_buddy(g, name); 250 g->prpl->add_buddy(g, name);
251 } 251 }
252 252
317 } 317 }
318 318
319 /* 319 /*
320 * Rename a group on server roster/list. 320 * Rename a group on server roster/list.
321 */ 321 */
322 void serv_rename_group(struct gaim_connection *g, struct group *old_group, char *new_name) 322 void serv_rename_group(struct gaim_connection *g, struct group *old_group, const char *new_name)
323 { 323 {
324 if (g && g->prpl && old_group && new_name) { 324 if (g && g->prpl && old_group && new_name) {
325 GList *tobemoved = NULL; 325 GList *tobemoved = NULL;
326 GSList *original; 326 GSList *original;
327 327
391 { 391 {
392 if (g && g_slist_find(connections, g) && g->prpl && g->prpl->join_chat) 392 if (g && g_slist_find(connections, g) && g->prpl && g->prpl->join_chat)
393 g->prpl->join_chat(g, data); 393 g->prpl->join_chat(g, data);
394 } 394 }
395 395
396 void serv_chat_invite(struct gaim_connection *g, int id, char *message, char *name) 396 void serv_chat_invite(struct gaim_connection *g, int id, const char *message, const char *name)
397 { 397 {
398 char *buffy = message && *message ? g_strdup(message) : NULL; 398 char *buffy = message && *message ? g_strdup(message) : NULL;
399 plugin_event(event_chat_send_invite, g, (void *)id, name, &buffy); 399 plugin_event(event_chat_send_invite, g, (void *)id, name, &buffy);
400 if (g && g_slist_find(connections, g) && g->prpl && g->prpl->chat_invite) 400 if (g && g_slist_find(connections, g) && g->prpl && g->prpl->chat_invite)
401 g->prpl->chat_invite(g, id, buffy, name); 401 g->prpl->chat_invite(g, id, buffy, name);