comparison src/multi.c @ 998:70c685de2be5

[gaim-migrate @ 1008] this is going to make it easier to add more protocols. each protocol now sets up connections with protocol-specific data. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 15 Oct 2000 03:50:32 +0000
parents eacd93d0089a
children 1d8f05ea6bdf
comparison
equal deleted inserted replaced
997:56cff2fba28c 998:70c685de2be5
52 gc->protocol = proto; 52 gc->protocol = proto;
53 gc->prpl = find_prpl(proto); 53 gc->prpl = find_prpl(proto);
54 g_snprintf(gc->username, sizeof(gc->username), "%s", username); 54 g_snprintf(gc->username, sizeof(gc->username), "%s", username);
55 g_snprintf(gc->password, sizeof(gc->password), "%s", password); 55 g_snprintf(gc->password, sizeof(gc->password), "%s", password);
56 gc->keepalive = -1; 56 gc->keepalive = -1;
57 57 gc->inpa = -1;
58 gc->buddy_chats = NULL;
59
60 /* this got moved to the void *proto_data, and each protocol can set this up
61 * itself, thank you very much
58 switch(proto) { 62 switch(proto) {
59 case PROTO_TOC: 63 case PROTO_TOC:
60 gc->toc_fd = -1; 64 gc->toc_fd = -1;
61 gc->seqno = 0; 65 gc->seqno = 0;
62 gc->state = 0; 66 gc->state = 0;
70 gc->paspa = -1; 74 gc->paspa = -1;
71 gc->create_exchange = 0; 75 gc->create_exchange = 0;
72 gc->create_name = NULL; 76 gc->create_name = NULL;
73 gc->oscar_chats = NULL; 77 gc->oscar_chats = NULL;
74 break; 78 break;
75 default: /* damn plugins */ 79 }
76 /* PRPL */ 80 */
77 break;
78 }
79 81
80 connections = g_slist_append(connections, gc); 82 connections = g_slist_append(connections, gc);
81 83
82 return gc; 84 return gc;
83 } 85 }