Ignore:
Timestamp:
Jan 14, 2007, 12:00:21 PM (14 years ago)
Author:
titer
Message:

Merge io branch into trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/inout.h

    r346 r1356  
    3131
    3232tr_io_t * tr_ioInit        ( tr_torrent_t * );
    33 int       tr_ioRead        ( tr_io_t *, int, int, int, uint8_t * );
    34 int       tr_ioWrite       ( tr_io_t *, int, int, int, uint8_t * );
     33
     34/***********************************************************************
     35 * tr_ioRead, tr_ioWrite
     36 ***********************************************************************
     37 * Reads or writes the block specified by the piece index, the offset in
     38 * that piece and the size of the block. Returns 0 if successful,
     39 * TR_ERROR_ASSERT if the parameters are incorrect, one of the
     40 * TR_ERROR_IO_* otherwise.
     41 **********************************************************************/
     42int tr_ioRead  ( tr_io_t *, int index, int begin, int len, uint8_t * );
     43int tr_ioWrite ( tr_io_t *, int index, int begin, int len, uint8_t * );
     44
     45/***********************************************************************
     46 * tr_ioHash
     47 ***********************************************************************
     48 * Hashes the specified piece and updates the completion accordingly.
     49 **********************************************************************/
     50int tr_ioHash ( tr_io_t *, int piece );
     51
     52/***********************************************************************
     53 * tr_ioSync
     54 ***********************************************************************
     55 * Flush all data on disc by closing all files, and update the cache
     56 * file.
     57 **********************************************************************/
     58void tr_ioSync( tr_io_t * );
     59
    3560void      tr_ioClose       ( tr_io_t * );
    36 void      tr_ioSaveResume  ( tr_io_t * );
    3761
    3862#endif
Note: See TracChangeset for help on using the changeset viewer.