Mercurial > pidgin
comparison src/protocols/jabber/jabber.c @ 6059:d8cd876e613e
[gaim-migrate @ 6509]
I made a lot of server.c functions use const chat * instead of const *
Made the alias entry have focus in the alias buddy dialog.
Fixed a typo thanks to J. Silvestri
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 08 Jul 2003 03:36:41 +0000 |
parents | 3b4f94adc7d4 |
children | 8d6aa792e0f6 |
comparison
equal
deleted
inserted
replaced
6058:d5f4ae4f9a02 | 6059:d8cd876e613e |
---|---|
1197 g_free(jri->away_msg); | 1197 g_free(jri->away_msg); |
1198 | 1198 |
1199 jri->away_msg = g_strdup(xmlnode_get_tag_data(p->x, "status")); | 1199 jri->away_msg = g_strdup(xmlnode_get_tag_data(p->x, "status")); |
1200 } | 1200 } |
1201 | 1201 |
1202 static void jabber_convo_closed(GaimConnection *gc, char *name) | 1202 static void jabber_convo_closed(GaimConnection *gc, const char *name) |
1203 { | 1203 { |
1204 jab_res_info jri = jabber_find_resource(gc, name); | 1204 jab_res_info jri = jabber_find_resource(gc, name); |
1205 | 1205 |
1206 if(jri) { | 1206 if(jri) { |
1207 if(jri->thread_id) | 1207 if(jri->thread_id) |
2450 xmlnode_free(jd->gjc->current); | 2450 xmlnode_free(jd->gjc->current); |
2451 } | 2451 } |
2452 gc->proto_data = NULL; | 2452 gc->proto_data = NULL; |
2453 } | 2453 } |
2454 | 2454 |
2455 static int jabber_send_typing(GaimConnection *gc, char *who, int typing) | 2455 static int jabber_send_typing(GaimConnection *gc, const char *who, int typing) |
2456 { | 2456 { |
2457 xmlnode x, y; | 2457 xmlnode x, y; |
2458 char *realwho; | 2458 char *realwho; |
2459 gjconn gjc = ((struct jabber_data *)gc->proto_data)->gjc; | 2459 gjconn gjc = ((struct jabber_data *)gc->proto_data)->gjc; |
2460 jab_res_info jri = jabber_find_resource(gc, who); | 2460 jab_res_info jri = jabber_find_resource(gc, who); |
2708 jabber_roster_update(gc, realwho, NULL, NULL); | 2708 jabber_roster_update(gc, realwho, NULL, NULL); |
2709 | 2709 |
2710 g_free(realwho); | 2710 g_free(realwho); |
2711 } | 2711 } |
2712 | 2712 |
2713 static void jabber_remove_buddy(GaimConnection *gc, char *name, char *group) | 2713 static void jabber_remove_buddy(GaimConnection *gc, const char *name, const char *group) |
2714 { | 2714 { |
2715 xmlnode x; | 2715 xmlnode x; |
2716 char *realwho; | 2716 char *realwho; |
2717 gjconn gjc = ((struct jabber_data *)gc->proto_data)->gjc; | 2717 gjconn gjc = ((struct jabber_data *)gc->proto_data)->gjc; |
2718 | 2718 |
3087 gjab_send(gjc, x); | 3087 gjab_send(gjc, x); |
3088 xmlnode_free(x); | 3088 xmlnode_free(x); |
3089 jc->b = NULL; | 3089 jc->b = NULL; |
3090 } | 3090 } |
3091 | 3091 |
3092 static int jabber_chat_send(GaimConnection *gc, int id, char *message) | 3092 static int jabber_chat_send(GaimConnection *gc, int id, const char *message) |
3093 { | 3093 { |
3094 xmlnode x, y; | 3094 xmlnode x, y; |
3095 struct jabber_chat *jc = NULL; | 3095 struct jabber_chat *jc = NULL; |
3096 char *chatname; | 3096 char *chatname; |
3097 int retval = 0; | 3097 int retval = 0; |
3122 gjab_send(((struct jabber_data *)gc->proto_data)->gjc, x); | 3122 gjab_send(((struct jabber_data *)gc->proto_data)->gjc, x); |
3123 xmlnode_free(x); | 3123 xmlnode_free(x); |
3124 return 0; | 3124 return 0; |
3125 } | 3125 } |
3126 | 3126 |
3127 static void jabber_chat_whisper(GaimConnection *gc, int id, char *who, char *message) | 3127 static void jabber_chat_whisper(GaimConnection *gc, int id, const char *who, const char *message) |
3128 { | 3128 { |
3129 xmlnode x; | 3129 xmlnode x; |
3130 struct jabber_chat *jc = NULL; | 3130 struct jabber_chat *jc = NULL; |
3131 char *chatname; | 3131 char *chatname; |
3132 | 3132 |
3289 g_show_info_text(gc, who, 2, final, NULL); | 3289 g_show_info_text(gc, who, 2, final, NULL); |
3290 g_free(final); | 3290 g_free(final); |
3291 | 3291 |
3292 } | 3292 } |
3293 | 3293 |
3294 static void jabber_get_cb_info(GaimConnection *gc, int cid, char *who) { | 3294 static void jabber_get_cb_info(GaimConnection *gc, int cid, const char *who) { |
3295 struct jabber_chat *jc = NULL; | 3295 struct jabber_chat *jc = NULL; |
3296 char *realwho; | 3296 char *realwho; |
3297 | 3297 |
3298 /* Find out which chat */ | 3298 /* Find out which chat */ |
3299 if(jabber_find_chat_by_convo_id(gc, cid, &jc) != 0) | 3299 if(jabber_find_chat_by_convo_id(gc, cid, &jc) != 0) |
3303 | 3303 |
3304 jabber_get_info(gc, realwho); | 3304 jabber_get_info(gc, realwho); |
3305 g_free(realwho); | 3305 g_free(realwho); |
3306 } | 3306 } |
3307 | 3307 |
3308 static void jabber_get_cb_away_msg(GaimConnection *gc, int cid, char *who) { | 3308 static void jabber_get_cb_away_msg(GaimConnection *gc, int cid, const char *who) { |
3309 struct jabber_chat *jc = NULL; | 3309 struct jabber_chat *jc = NULL; |
3310 char *realwho; | 3310 char *realwho; |
3311 | 3311 |
3312 /* Find out which chat */ | 3312 /* Find out which chat */ |
3313 if(jabber_find_chat_by_convo_id(gc, cid, &jc) != 0) | 3313 if(jabber_find_chat_by_convo_id(gc, cid, &jc) != 0) |
3437 m = g_list_append(m, GAIM_AWAY_CUSTOM); | 3437 m = g_list_append(m, GAIM_AWAY_CUSTOM); |
3438 | 3438 |
3439 return m; | 3439 return m; |
3440 } | 3440 } |
3441 | 3441 |
3442 static void jabber_set_away(GaimConnection *gc, char *state, char *message) | 3442 static void jabber_set_away(GaimConnection *gc, const char *state, const char *message) |
3443 { | 3443 { |
3444 xmlnode x, y; | 3444 xmlnode x, y; |
3445 struct jabber_data *jd = gc->proto_data; | 3445 struct jabber_data *jd = gc->proto_data; |
3446 gjconn gjc = jd->gjc; | 3446 gjconn gjc = jd->gjc; |
3447 GSList *jcs; | 3447 GSList *jcs; |