Mercurial > pidgin.yaz
comparison plugins/icq/filesession.c @ 1309:0a766047b4fd
[gaim-migrate @ 1319]
Yay, new icqlib
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 19 Dec 2000 10:08:29 +0000 |
parents | 201ec77f3a60 |
children | 4c510ca3563f |
comparison
equal
deleted
inserted
replaced
1308:4741b5a75b9f | 1309:0a766047b4fd |
---|---|
10 #define close _close | 10 #define close _close |
11 #define read _read | 11 #define read _read |
12 #define write _write | 12 #define write _write |
13 #endif | 13 #endif |
14 | 14 |
15 #include "icqlib.h" | |
15 #include "filesession.h" | 16 #include "filesession.h" |
16 #include "list.h" | 17 #include "list.h" |
17 #include "icqpacket.h" | 18 #include "icqpacket.h" |
18 #include "stdpackets.h" | 19 #include "stdpackets.h" |
19 | 20 |
34 p->current_speed=100; | 35 p->current_speed=100; |
35 p->total_bytes=0; | 36 p->total_bytes=0; |
36 p->total_files=0; | 37 p->total_files=0; |
37 p->total_transferred_bytes=0; | 38 p->total_transferred_bytes=0; |
38 p->working_dir[0]=0; | 39 p->working_dir[0]=0; |
39 list_insert(icqlink->icq_FileSessions, 0, p); | 40 list_insert(icqlink->d->icq_FileSessions, 0, p); |
40 } | 41 } |
41 | 42 |
42 return p; | 43 return p; |
43 } | 44 } |
44 | 45 |
72 } | 73 } |
73 | 74 |
74 icq_FileSession *icq_FindFileSession(ICQLINK *icqlink, DWORD uin, | 75 icq_FileSession *icq_FindFileSession(ICQLINK *icqlink, DWORD uin, |
75 unsigned long id) | 76 unsigned long id) |
76 { | 77 { |
77 return list_traverse(icqlink->icq_FileSessions, _icq_FindFileSession, | 78 return list_traverse(icqlink->d->icq_FileSessions, _icq_FindFileSession, |
78 uin, id); | 79 uin, id); |
79 } | 80 } |
80 | 81 |
81 void icq_FileSessionSetStatus(icq_FileSession *p, int status) | 82 void icq_FileSessionSetStatus(icq_FileSession *p, int status) |
82 { | 83 { |
216 icq_TCPLinkClose(plink); | 217 icq_TCPLinkClose(plink); |
217 } | 218 } |
218 | 219 |
219 icq_FileSessionDelete(p); | 220 icq_FileSessionDelete(p); |
220 | 221 |
221 list_remove(p->icqlink->icq_FileSessions, p); | 222 list_remove(p->icqlink->d->icq_FileSessions, p); |
222 } | 223 } |
223 | 224 |
224 void icq_FileSessionSetWorkingDir(icq_FileSession *p, const char *dir) | 225 void icq_FileSessionSetWorkingDir(icq_FileSession *p, const char *dir) |
225 { | 226 { |
226 strncpy(p->working_dir, dir, 512); | 227 strncpy(p->working_dir, dir, 512); |