Changeset 3105 for trunk/libtransmission/inout.h
- Timestamp:
- Sep 20, 2007, 4:32:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/inout.h
r2462 r3105 26 26 #define TR_IO_H 1 27 27 28 typedef struct tr_io_s tr_io_t;28 struct tr_torrent; 29 29 30 void tr_ioCheckFiles ( tr_torrent_t * ); 31 32 tr_io_t * tr_ioNew ( tr_torrent_t * ); 30 typedef struct tr_io tr_io; 33 31 34 32 /*********************************************************************** … … 40 38 * TR_ERROR_IO_* otherwise. 41 39 **********************************************************************/ 42 int tr_ioRead ( tr_io_t*, int index, int begin, int len, uint8_t * );43 int tr_ioWrite ( tr_io_t *, int index, int begin, int len, uint8_t * );40 int tr_ioRead ( struct tr_torrent*, int index, int begin, int len, uint8_t * ); 41 int tr_ioWrite ( struct tr_torrent *, int index, int begin, int len, uint8_t * ); 44 42 45 /*********************************************************************** 46 * tr_ioHash 47 *********************************************************************** 48 * Hashes the specified piece and updates the completion accordingly. 49 **********************************************************************/ 50 int tr_ioHash ( tr_io_t *, int piece ); 43 /* hashes the specified piece and updates the completion accordingly. */ 44 int tr_ioHash ( tr_torrent*, int piece ); 51 45 52 /*********************************************************************** 53 * tr_ioSync 54 *********************************************************************** 55 * Flush all data on disc by closing all files, and update the cache 56 * file. 57 **********************************************************************/ 58 void tr_ioSync( tr_io_t * ); 46 /* close all the files associated with this torrent*/ 47 void tr_ioClose( const tr_torrent * ); 59 48 60 void tr_ioClose ( tr_io_t * ); 49 /** 50 *** 51 **/ 52 53 typedef void (*tr_recheck_done_cb)( tr_torrent * tor ); 54 55 void tr_ioRecheckAdd( tr_torrent * tor, 56 tr_recheck_done_cb recheck_done_cb, 57 run_status_t status_when_done ); 58 59 void tr_ioRecheckRemove( tr_torrent * tor ); 60 61 /** 62 *** 63 **/ 61 64 62 65 #endif
Note: See TracChangeset
for help on using the changeset viewer.