Ignore:
Timestamp:
Jan 18, 2008, 7:13:32 PM (13 years ago)
Author:
charles
Message:

if the torrent's download path doesn't exist, don't create it -- it's might be a removeable disk that got unplugged.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/inout.h

    r4404 r4734  
    2828struct tr_torrent;
    2929
    30 typedef struct tr_io tr_io;
     30/**
     31 * Reads the block specified by the piece index, offset, and length.
     32 * @return 0 on success, TR_ERROR_ASSERT if the arguments are incorrect,
     33 * or TR_ERROR_IO_* otherwise.
     34 */
     35int tr_ioRead  ( struct tr_torrent*, int index, int begin, int len, uint8_t * );
    3136
    32 /***********************************************************************
    33  * tr_ioRead, tr_ioWrite
    34  ***********************************************************************
    35  * Reads or writes the block specified by the piece index, the offset in
    36  * that piece and the size of the block. Returns 0 if successful,
    37  * TR_ERROR_ASSERT if the parameters are incorrect, one of the
    38  * TR_ERROR_IO_* otherwise.
    39  **********************************************************************/
    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, const uint8_t * );
     37/**
     38 * Writes the block specified by the piece index, offset, and length.
     39 * @return 0 on success, TR_ERROR_ASSERT if the arguments are incorrect,
     40 * or TR_ERROR_IO_* otherwise.
     41 */
     42tr_errno tr_ioWrite ( struct tr_torrent *, int index, int begin, int len, const uint8_t * );
    4243
    4344/* hashes the specified piece and updates the completion accordingly. */
Note: See TracChangeset for help on using the changeset viewer.