Mercurial > pidgin.yaz
comparison src/server.c @ 5630:4e2ffa3d9094
[gaim-migrate @ 6037]
Constification.
Also, what was I going--oh yeah, fixes a compile warning in oscar.c
Maybe I should be casting all of the 0.5s to ints? Eh.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Sun, 01 Jun 2003 05:18:43 +0000 |
| parents | 67900446fab9 |
| children | dae79aefac8d |
comparison
equal
deleted
inserted
replaced
| 5629:e2ff6f156917 | 5630:4e2ffa3d9094 |
|---|---|
| 459 if (b && prpl_info && prpl_info->alias_buddy) { | 459 if (b && prpl_info && prpl_info->alias_buddy) { |
| 460 prpl_info->alias_buddy(b->account->gc, b->name, b->alias); | 460 prpl_info->alias_buddy(b->account->gc, b->name, b->alias); |
| 461 } | 461 } |
| 462 } | 462 } |
| 463 | 463 |
| 464 void serv_got_alias(GaimConnection *gc, char *who, char *alias) { | 464 void serv_got_alias(GaimConnection *gc, const char *who, const char *alias) { |
| 465 struct buddy *b = gaim_find_buddy(gc->account, who); | 465 struct buddy *b = gaim_find_buddy(gc->account, who); |
| 466 if(!b) | 466 if(!b) |
| 467 return; | 467 return; |
| 468 | 468 |
| 469 if (b->server_alias) | 469 if (b->server_alias) |
| 1021 g_free(message); | 1021 g_free(message); |
| 1022 } | 1022 } |
| 1023 | 1023 |
| 1024 | 1024 |
| 1025 | 1025 |
| 1026 void serv_got_update(GaimConnection *gc, char *name, int loggedin, | 1026 void serv_got_update(GaimConnection *gc, const char *name, int loggedin, |
| 1027 int evil, time_t signon, time_t idle, int type) | 1027 int evil, time_t signon, time_t idle, int type) |
| 1028 { | 1028 { |
| 1029 GaimAccount *account; | 1029 GaimAccount *account; |
| 1030 struct buddy *b; | 1030 struct buddy *b; |
| 1031 | 1031 |
| 1145 gaim_blist_update_buddy_presence(b, loggedin); | 1145 gaim_blist_update_buddy_presence(b, loggedin); |
| 1146 | 1146 |
| 1147 } | 1147 } |
| 1148 | 1148 |
| 1149 | 1149 |
| 1150 void serv_got_eviled(GaimConnection *gc, char *name, int lev) | 1150 void serv_got_eviled(GaimConnection *gc, const char *name, int lev) |
| 1151 { | 1151 { |
| 1152 char buf2[1024]; | 1152 char buf2[1024]; |
| 1153 | 1153 |
| 1154 gaim_event_broadcast(event_warned, gc, name, lev); | 1154 gaim_event_broadcast(event_warned, gc, name, lev); |
| 1155 | 1155 |
| 1167 ((name == NULL) ? _("an anonymous person") : name), lev); | 1167 ((name == NULL) ? _("an anonymous person") : name), lev); |
| 1168 | 1168 |
| 1169 gaim_notify_info(NULL, NULL, buf2, NULL); | 1169 gaim_notify_info(NULL, NULL, buf2, NULL); |
| 1170 } | 1170 } |
| 1171 | 1171 |
| 1172 void serv_got_typing(GaimConnection *gc, char *name, int timeout, | 1172 void serv_got_typing(GaimConnection *gc, const char *name, int timeout, |
| 1173 int state) { | 1173 int state) { |
| 1174 | 1174 |
| 1175 struct buddy *b; | 1175 struct buddy *b; |
| 1176 struct gaim_conversation *cnv = gaim_find_conversation(name); | 1176 struct gaim_conversation *cnv = gaim_find_conversation(name); |
| 1177 struct gaim_im *im; | 1177 struct gaim_im *im; |
| 1194 | 1194 |
| 1195 if (timeout > 0) | 1195 if (timeout > 0) |
| 1196 gaim_im_start_typing_timeout(im, timeout); | 1196 gaim_im_start_typing_timeout(im, timeout); |
| 1197 } | 1197 } |
| 1198 | 1198 |
| 1199 void serv_got_typing_stopped(GaimConnection *gc, char *name) { | 1199 void serv_got_typing_stopped(GaimConnection *gc, const char *name) { |
| 1200 | 1200 |
| 1201 struct gaim_conversation *c = gaim_find_conversation(name); | 1201 struct gaim_conversation *c = gaim_find_conversation(name); |
| 1202 struct gaim_im *im; | 1202 struct gaim_im *im; |
| 1203 struct buddy *b; | 1203 struct buddy *b; |
| 1204 | 1204 |
| 1239 chat_invite_data_free(cid); | 1239 chat_invite_data_free(cid); |
| 1240 } | 1240 } |
| 1241 | 1241 |
| 1242 | 1242 |
| 1243 | 1243 |
| 1244 void serv_got_chat_invite(GaimConnection *gc, char *name, | 1244 void serv_got_chat_invite(GaimConnection *gc, const char *name, |
| 1245 char *who, char *message, GHashTable *data) | 1245 const char *who, const char *message, GHashTable *data) |
| 1246 { | 1246 { |
| 1247 GaimAccount *account; | 1247 GaimAccount *account; |
| 1248 char buf2[BUF_LONG]; | 1248 char buf2[BUF_LONG]; |
| 1249 struct chat_invite_data *cid = g_new0(struct chat_invite_data, 1); | 1249 struct chat_invite_data *cid = g_new0(struct chat_invite_data, 1); |
| 1250 | 1250 |
| 1269 G_CALLBACK(chat_invite_accept), | 1269 G_CALLBACK(chat_invite_accept), |
| 1270 G_CALLBACK(chat_invite_data_free)); | 1270 G_CALLBACK(chat_invite_data_free)); |
| 1271 } | 1271 } |
| 1272 | 1272 |
| 1273 struct gaim_conversation *serv_got_joined_chat(GaimConnection *gc, | 1273 struct gaim_conversation *serv_got_joined_chat(GaimConnection *gc, |
| 1274 int id, char *name) | 1274 int id, const char *name) |
| 1275 { | 1275 { |
| 1276 struct gaim_conversation *b; | 1276 struct gaim_conversation *b; |
| 1277 struct gaim_chat *chat; | 1277 struct gaim_chat *chat; |
| 1278 | 1278 |
| 1279 b = gaim_conversation_new(GAIM_CONV_CHAT, gc->account, name); | 1279 b = gaim_conversation_new(GAIM_CONV_CHAT, gc->account, name); |
