Changeset 346
- Timestamp:
- Jun 13, 2006, 12:28:03 AM (15 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/inout.c
r310 r346 62 62 63 63 /*********************************************************************** 64 * tr_ioLoadResume 65 *********************************************************************** 66 * Try to load the fast resume file 67 **********************************************************************/ 68 void tr_ioLoadResume( tr_torrent_t * tor ) 69 { 70 tr_io_t * io; 71 tr_info_t * inf = &tor->info; 72 73 io = malloc( sizeof( tr_io_t ) ); 74 io->tor = tor; 75 76 io->pieceSlot = malloc( inf->pieceCount * sizeof( int ) ); 77 io->slotPiece = malloc( inf->pieceCount * sizeof( int ) ); 78 79 fastResumeLoad( io ); 80 81 free( io->pieceSlot ); 82 free( io->slotPiece ); 83 free( io ); 84 } 85 86 /*********************************************************************** 64 87 * tr_ioInit 65 88 *********************************************************************** -
trunk/libtransmission/inout.h
r261 r346 28 28 typedef struct tr_io_s tr_io_t; 29 29 30 void tr_ioLoadResume ( tr_torrent_t * ); 31 30 32 tr_io_t * tr_ioInit ( tr_torrent_t * ); 31 33 int tr_ioRead ( tr_io_t *, int, int, int, uint8_t * ); -
trunk/libtransmission/transmission.c
r310 r346 318 318 { 319 319 tor->destination = strdup( path ); 320 tr_ioLoadResume( tor ); 320 321 } 321 322
Note: See TracChangeset
for help on using the changeset viewer.