Mercurial > pidgin
comparison src/server.c @ 8950:80b4c956d7ae
[gaim-migrate @ 9722]
Remove the prpl callbacks set_dir, get_dir and dir_search.
These
1) Were not called by anything
2) Are AIM-centric
3) Should be Account Actions, if implemented
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Sun, 16 May 2004 07:19:56 +0000 |
| parents | 175cbf710a47 |
| children | 8f838ae3e710 |
comparison
equal
deleted
inserted
replaced
| 8949:dfa1cd98d1c7 | 8950:80b4c956d7ae |
|---|---|
| 301 | 301 |
| 302 if (g && prpl_info && prpl_info->get_info) | 302 if (g && prpl_info && prpl_info->get_info) |
| 303 prpl_info->get_info(g, name); | 303 prpl_info->get_info(g, name); |
| 304 } | 304 } |
| 305 | 305 |
| 306 void serv_get_dir(GaimConnection *g, const char *name) | |
| 307 { | |
| 308 GaimPluginProtocolInfo *prpl_info = NULL; | |
| 309 | |
| 310 if (g != NULL && g->prpl != NULL) | |
| 311 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(g->prpl); | |
| 312 | |
| 313 if (prpl_info && g_list_find(gaim_connections_get_all(), g) && prpl_info->get_dir) | |
| 314 prpl_info->get_dir(g, name); | |
| 315 } | |
| 316 | |
| 317 void serv_set_dir(GaimConnection *g, const char *first, | |
| 318 const char *middle, const char *last, const char *maiden, | |
| 319 const char *city, const char *state, const char *country, | |
| 320 int web) | |
| 321 { | |
| 322 GaimPluginProtocolInfo *prpl_info = NULL; | |
| 323 | |
| 324 if (g != NULL && g->prpl != NULL) | |
| 325 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(g->prpl); | |
| 326 | |
| 327 if (prpl_info && g_list_find(gaim_connections_get_all(), g) && prpl_info->set_dir) | |
| 328 prpl_info->set_dir(g, first, middle, last, maiden, city, state, | |
| 329 country, web); | |
| 330 } | |
| 331 | |
| 332 void serv_dir_search(GaimConnection *g, const char *first, | |
| 333 const char *middle, const char *last, const char *maiden, | |
| 334 const char *city, const char *state, const char *country, | |
| 335 const char *email) | |
| 336 { | |
| 337 GaimPluginProtocolInfo *prpl_info = NULL; | |
| 338 | |
| 339 if (g != NULL && g->prpl != NULL) | |
| 340 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(g->prpl); | |
| 341 | |
| 342 if (prpl_info && g_list_find(gaim_connections_get_all(), g) && prpl_info->dir_search) | |
| 343 prpl_info->dir_search(g, first, middle, last, maiden, city, state, | |
| 344 country, email); | |
| 345 } | |
| 346 | |
| 347 | |
| 348 void serv_set_away(GaimConnection *gc, const char *state, const char *message) | 306 void serv_set_away(GaimConnection *gc, const char *state, const char *message) |
| 349 { | 307 { |
| 350 GaimPluginProtocolInfo *prpl_info = NULL; | 308 GaimPluginProtocolInfo *prpl_info = NULL; |
| 351 GaimAccount *account; | 309 GaimAccount *account; |
| 352 | 310 |
