1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-01 19:46:45 +02:00

add ability to cancel file transfers

This commit is contained in:
Jfreegman
2014-08-04 01:56:43 -04:00
parent 38ed0c86ad
commit 6fdafceda8
11 changed files with 86 additions and 20 deletions

View File

@ -33,10 +33,12 @@ struct FileReceiver {
char filenames[MAX_FILES][MAX_STR_SIZE];
FILE *files[MAX_FILES];
bool pending[MAX_FILES];
bool active[MAX_FILES];
uint64_t size[MAX_FILES];
double bps[MAX_FILES];
uint64_t last_progress[MAX_FILES];
uint32_t line_id[MAX_FILES];
int filenums[MAX_FILES];
};
struct LastOnline {