Mercurial > pidgin
comparison src/multi.h @ 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 | 9523b772e546 |
| children | 1d8f05ea6bdf |
comparison
equal
deleted
inserted
replaced
| 997:56cff2fba28c | 998:70c685de2be5 |
|---|---|
| 34 /* we need to do either oscar or TOC */ | 34 /* we need to do either oscar or TOC */ |
| 35 /* we make this as an int in case if we want to add more protocols later */ | 35 /* we make this as an int in case if we want to add more protocols later */ |
| 36 int protocol; | 36 int protocol; |
| 37 struct prpl *prpl; | 37 struct prpl *prpl; |
| 38 | 38 |
| 39 /* let's do the oscar-specific stuff first since i know it better */ | 39 /* all connections need an input watcher */ |
| 40 struct aim_session_t *oscar_sess; | 40 int inpa; |
| 41 struct aim_conn_t *oscar_conn; /* we don't particularly need this since it | |
| 42 will be in oscar_sess, but it's useful to | |
| 43 still keep our own reference to it */ | |
| 44 int inpa; /* do we really need this? it's for the BOS conn */ | |
| 45 int cnpa; /* chat nav input watcher */ | |
| 46 int paspa; /* for changing passwords, which doesn't work yet */ | |
| 47 | 41 |
| 48 int create_exchange; | 42 /* all connections need a list of chats, even if they don't have chat */ |
| 49 char *create_name; | |
| 50 | |
| 51 GSList *oscar_chats; | |
| 52 GSList *buddy_chats; | 43 GSList *buddy_chats; |
| 53 | 44 |
| 54 /* that's all we need for oscar. now then, on to TOC.... */ | 45 /* each connection then can have its own protocol-specific data */ |
| 55 int toc_fd; | 46 void *proto_data; |
| 56 int seqno; | |
| 57 int state; | |
| 58 /* int inpa; input watcher, dual-declared for oscar as well */ | |
| 59 | 47 |
| 60 /* now we'll do stuff that both of them need */ | |
| 61 char username[64]; | 48 char username[64]; |
| 62 char password[32]; | 49 char password[32]; |
| 63 char user_info[2048]; | 50 char user_info[2048]; |
| 64 char g_screenname[64]; | 51 char g_screenname[64]; |
| 65 int options; /* same as aim_user options */ | 52 int options; /* same as aim_user options */ |
