Changeset 13625 for trunk/libtransmission/inout.h
- Timestamp:
- Dec 5, 2012, 5:29:46 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/inout.h
r12545 r13625 3 3 * 4 4 * This file is licensed by the GPL version 2. Works owned by the 5 * Transmission project are granted a special exemption to clause 2 (b)5 * Transmission project are granted a special exemption to clause 2 (b) 6 6 * so that the bulk of its code can remain under the MIT license. 7 7 * This exemption does not extend to derived works not owned by … … 29 29 * @return 0 on success, or an errno value on failure. 30 30 */ 31 int tr_ioRead (struct tr_torrent * tor,31 int tr_ioRead (struct tr_torrent * tor, 32 32 tr_piece_index_t pieceIndex, 33 33 uint32_t offset, 34 34 uint32_t len, 35 uint8_t * setme 35 uint8_t * setme); 36 36 37 int tr_ioPrefetch (tr_torrent * tor,37 int tr_ioPrefetch (tr_torrent * tor, 38 38 tr_piece_index_t pieceIndex, 39 39 uint32_t begin, 40 uint32_t len 40 uint32_t len); 41 41 42 42 /** … … 44 44 * @return 0 on success, or an errno value on failure. 45 45 */ 46 int tr_ioWrite (struct tr_torrent * tor,46 int tr_ioWrite (struct tr_torrent * tor, 47 47 tr_piece_index_t pieceIndex, 48 48 uint32_t offset, 49 49 uint32_t len, 50 const uint8_t * writeme 50 const uint8_t * writeme); 51 51 52 52 /** 53 53 * @brief Test to see if the piece matches its metainfo's SHA1 checksum. 54 54 */ 55 bool tr_ioTestPiece (tr_torrent * tor,56 tr_piece_index_t piece 55 bool tr_ioTestPiece (tr_torrent * tor, 56 tr_piece_index_t piece); 57 57 58 58 … … 60 60 * Converts a piece index + offset into a file index + offset. 61 61 */ 62 void tr_ioFindFileLocation (const tr_torrent * tor,62 void tr_ioFindFileLocation (const tr_torrent * tor, 63 63 tr_piece_index_t pieceIndex, 64 64 uint32_t pieceOffset, 65 65 tr_file_index_t * fileIndex, 66 uint64_t * fileOffset 66 uint64_t * fileOffset); 67 67 68 68
Note: See TracChangeset
for help on using the changeset viewer.