comparison src/protocols/jabber/jabber.c @ 5679:0a0116686d51

[gaim-migrate @ 6097] let the prpls know about the new API changes committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 02 Jun 2003 22:24:07 +0000
parents 0bdfa28c678e
children 46d7ad0dfa26
comparison
equal deleted inserted replaced
5678:619bca773b2e 5679:0a0116686d51
224 * pending and existing chats lists. 224 * pending and existing chats lists.
225 */ 225 */
226 struct jabber_chat { 226 struct jabber_chat {
227 gaim_jid gjid; 227 gaim_jid gjid;
228 GaimConnection *gc; 228 GaimConnection *gc;
229 struct gaim_conversation *b; 229 GaimConversation *b;
230 int id; 230 int id;
231 int state; 231 int state;
232 }; 232 };
233 233
234 /* 234 /*
836 } 836 }
837 837
838 /* 838 /*
839 * Find chat by chat group name 839 * Find chat by chat group name
840 */ 840 */
841 static struct gaim_conversation *find_chat(GaimConnection *gc, char *name) 841 static GaimConversation *find_chat(GaimConnection *gc, char *name)
842 { 842 {
843 GSList *bcs = gc->buddy_chats; 843 GSList *bcs = gc->buddy_chats;
844 struct gaim_conversation *b = NULL; 844 GaimConversation *b = NULL;
845 char *chat = g_strdup(normalize(name)); 845 char *chat = g_strdup(normalize(name));
846 846
847 while (bcs) { 847 while (bcs) {
848 b = bcs->data; 848 b = bcs->data;
849 if (!strcasecmp(normalize(b->name), chat)) 849 if (!strcasecmp(normalize(b->name), chat))
869 * was, so that's the way I'm leaving it--for now. 869 * was, so that's the way I'm leaving it--for now.
870 */ 870 */
871 static int jabber_find_chat_by_convo_id(GaimConnection *gc, int id, struct jabber_chat **jc) 871 static int jabber_find_chat_by_convo_id(GaimConnection *gc, int id, struct jabber_chat **jc)
872 { 872 {
873 GSList *bcs = gc->buddy_chats; 873 GSList *bcs = gc->buddy_chats;
874 struct gaim_conversation *b = NULL; 874 GaimConversation *b = NULL;
875 struct jabber_data *jd = gc->proto_data; 875 struct jabber_data *jd = gc->proto_data;
876 876
877 *jc = NULL; 877 *jc = NULL;
878 878
879 while(bcs != NULL) { 879 while(bcs != NULL) {
952 } 952 }
953 953
954 return jc; 954 return jc;
955 } 955 }
956 956
957 static gboolean find_chat_buddy(struct gaim_conversation *b, char *name) 957 static gboolean find_chat_buddy(GaimConversation *b, char *name)
958 { 958 {
959 GList *m = gaim_chat_get_users(GAIM_CHAT(b)); 959 GList *m = gaim_chat_get_users(GAIM_CHAT(b));
960 960
961 while (m) { 961 while (m) {
962 if (!strcmp(m->data, name)) 962 if (!strcmp(m->data, name))
1502 gaim_jid gjid; 1502 gaim_jid gjid;
1503 char *buddy; 1503 char *buddy;
1504 xmlnode y; 1504 xmlnode y;
1505 char *show; 1505 char *show;
1506 int state = 0; 1506 int state = 0;
1507 struct gaim_conversation *cnv = NULL; 1507 GaimConversation *cnv = NULL;
1508 struct jabber_chat *jc = NULL; 1508 struct jabber_chat *jc = NULL;
1509 int priority = 0; 1509 int priority = 0;
1510 struct jabber_buddy_data *jbd; 1510 struct jabber_buddy_data *jbd;
1511 1511
1512 to = xmlnode_get_attrib(p->x, "to"); 1512 to = xmlnode_get_attrib(p->x, "to");