Ignore:
Timestamp:
Sep 20, 2007, 4:32:01 PM (13 years ago)
Author:
livings124
Message:

merge encryption branch to trunk (xcode project is still out of date)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/inout.h

    r2462 r3105  
    2626#define TR_IO_H 1
    2727
    28 typedef struct tr_io_s tr_io_t;
     28struct tr_torrent;
    2929
    30 void tr_ioCheckFiles  ( tr_torrent_t * );
    31 
    32 tr_io_t * tr_ioNew ( tr_torrent_t * );
     30typedef struct tr_io tr_io;
    3331
    3432/***********************************************************************
     
    4038 * TR_ERROR_IO_* otherwise.
    4139 **********************************************************************/
    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 * );
     40int tr_ioRead  ( struct tr_torrent*, int index, int begin, int len, uint8_t * );
     41int tr_ioWrite ( struct tr_torrent *, int index, int begin, int len, uint8_t * );
    4442
    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. */
     44int tr_ioHash ( tr_torrent*, int piece );
    5145
    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*/
     47void tr_ioClose( const tr_torrent * );
    5948
    60 void      tr_ioClose       ( tr_io_t * );
     49/**
     50***
     51**/
     52
     53typedef void (*tr_recheck_done_cb)( tr_torrent * tor );
     54
     55void tr_ioRecheckAdd( tr_torrent          * tor,
     56                      tr_recheck_done_cb    recheck_done_cb,
     57                      run_status_t          status_when_done );
     58
     59void tr_ioRecheckRemove( tr_torrent * tor );
     60
     61/**
     62***
     63**/
    6164
    6265#endif
Note: See TracChangeset for help on using the changeset viewer.