Changeset 5042 for trunk/libtransmission/inout.h
- Timestamp:
- Feb 15, 2008, 4:00:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/inout.h
r4734 r5042 33 33 * or TR_ERROR_IO_* otherwise. 34 34 */ 35 int tr_ioRead ( struct tr_torrent*, int index, int begin, int len, uint8_t * ); 35 int tr_ioRead ( const struct tr_torrent * tor, 36 int pieceIndex, 37 int offset, 38 int len, 39 uint8_t * setme ); 36 40 37 41 /** … … 40 44 * or TR_ERROR_IO_* otherwise. 41 45 */ 42 tr_errno tr_ioWrite ( struct tr_torrent *, int index, int begin, int len, const uint8_t * ); 46 tr_errno tr_ioWrite ( struct tr_torrent * tor, 47 int pieceIndex, 48 int offset, 49 int len, 50 const uint8_t * writeme ); 43 51 44 /* hashes the specified piece and updates the completion accordingly. */ 52 /** 53 * returns true if the piece matches its metainfo's SHA1 checksum, 54 * false otherwise. 55 */ 56 int tr_ioTestPiece( const tr_torrent*, int piece ); 57 58 59 /** 60 * tests the specified piece and uses the results to 61 * update the torrent's "completion" and "blame" fields. 62 */ 45 63 int tr_ioHash ( tr_torrent*, int piece ); 46 64 47 /**48 ***49 **/50 51 typedef void (*tr_recheck_done_cb)( tr_torrent * tor );52 53 void tr_ioRecheckAdd( tr_torrent * tor,54 tr_recheck_done_cb recheck_done_cb );55 56 void tr_ioRecheckRemove( tr_torrent * tor );57 58 /**59 ***60 **/61 65 62 66 #endif
Note: See TracChangeset
for help on using the changeset viewer.