Mercurial > pidgin
comparison src/server.c @ 1102:d7944415b1cc
[gaim-migrate @ 1112]
updates to changelog, fix for potential segfault in buddy.c, making dir info in server.c connection-based, and making gaim dependent on toc/rvous only for build_toc_config and parse_toc_buddy_list (and of course, toc_init).
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Thu, 16 Nov 2000 23:51:49 +0000 |
| parents | f168625b63fe |
| children | 249b040f6a83 |
comparison
equal
deleted
inserted
replaced
| 1101:0ef4386edc29 | 1102:d7944415b1cc |
|---|---|
| 140 { | 140 { |
| 141 if (g && g->prpl && g->prpl->get_dir) | 141 if (g && g->prpl && g->prpl->get_dir) |
| 142 (*g->prpl->get_dir)(g, name); | 142 (*g->prpl->get_dir)(g, name); |
| 143 } | 143 } |
| 144 | 144 |
| 145 void serv_set_dir(char *first, char *middle, char *last, char *maiden, | 145 void serv_set_dir(struct gaim_connection *g, char *first, char *middle, char *last, char *maiden, |
| 146 char *city, char *state, char *country, int web) | 146 char *city, char *state, char *country, int web) |
| 147 { | 147 { |
| 148 /* FIXME */ | |
| 149 struct gaim_connection *g; | |
| 150 if (!connections) return; | |
| 151 g = connections->data; | |
| 152 | |
| 153 if (g && g->prpl && g->prpl->set_dir) | 148 if (g && g->prpl && g->prpl->set_dir) |
| 154 (*g->prpl->set_dir)(g, first, middle, last, maiden, city, state, country, web); | 149 (*g->prpl->set_dir)(g, first, middle, last, maiden, city, state, country, web); |
| 155 } | 150 } |
| 156 | 151 |
| 157 void serv_dir_search(char *first, char *middle, char *last, char *maiden, | 152 void serv_dir_search(struct gaim_connection *g, char *first, char *middle, char *last, char *maiden, |
| 158 char *city, char *state, char *country, char *email) | 153 char *city, char *state, char *country, char *email) |
| 159 { | 154 { |
| 160 /* FIXME */ | |
| 161 struct gaim_connection *g; | |
| 162 if (!connections) return; | |
| 163 g = connections->data; | |
| 164 | |
| 165 if (g && g->prpl && g->prpl->dir_search) | 155 if (g && g->prpl && g->prpl->dir_search) |
| 166 (*g->prpl->dir_search)(g, first, middle, last, maiden, city, state, country, email); | 156 (*g->prpl->dir_search)(g, first, middle, last, maiden, city, state, country, email); |
| 167 } | 157 } |
| 168 | 158 |
| 169 | 159 |
| 706 w = 0; | 696 w = 0; |
| 707 | 697 |
| 708 chat_write(b, who, w, message); | 698 chat_write(b, who, w, message); |
| 709 } | 699 } |
| 710 | 700 |
| 711 void serv_rvous_accept(struct gaim_connection *g, char *name, char *cookie, char *uid) | |
| 712 { | |
| 713 /* Oscar doesn't matter here because this won't ever be called for it */ | |
| 714 char buf[MSG_LEN]; | |
| 715 g_snprintf(buf, MSG_LEN, "toc_rvous_accept %s %s %s", normalize(name), | |
| 716 cookie, uid); | |
| 717 sflap_send(g, buf, -1, TYPE_DATA); | |
| 718 } | |
| 719 | |
| 720 void serv_rvous_cancel(struct gaim_connection *g, char *name, char *cookie, char *uid) | |
| 721 { | |
| 722 char buf[MSG_LEN]; | |
| 723 g_snprintf(buf, MSG_LEN, "toc_rvous_cancel %s %s %s", normalize(name), | |
| 724 cookie, uid); | |
| 725 sflap_send(g, buf, -1, TYPE_DATA); | |
| 726 } | |
| 727 | |
| 728 void send_keepalive(gpointer d) { | 701 void send_keepalive(gpointer d) { |
| 729 struct gaim_connection *gc = (struct gaim_connection *)d; | 702 struct gaim_connection *gc = (struct gaim_connection *)d; |
| 730 debug_print("sending oscar NOP\n"); | 703 debug_print("sending oscar NOP\n"); |
| 731 if (gc->prpl && gc->prpl->keepalive) | 704 if (gc->prpl && gc->prpl->keepalive) |
| 732 (*gc->prpl->keepalive)(gc); | 705 (*gc->prpl->keepalive)(gc); |
