Ignore:
Timestamp:
Jul 15, 2007, 8:05:32 PM (15 years ago)
Author:
charles
Message:

replace tr_torrentGetFileStatus() with tr_torrentFiles() for BMW

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.h

    r2360 r2361  
    246246void tr_torrentSetFileDL( tr_torrent_t *, int file, int do_download );
    247247
    248 
    249 typedef enum
    250 {
    251     TR_CP_INCOMPLETE,   /* doesn't have all the desired pieces */
    252     TR_CP_DONE,         /* has all the pieces but the DND ones */
    253     TR_CP_COMPLETE      /* has every piece */
    254 }
    255 cp_status_t;
    256 
    257 cp_status_t tr_torrentGetFileStatus( const tr_torrent_t  * tor,
    258                                      int                   fileIndex );
    259 
    260 
    261248/***********************************************************************
    262249 * tr_torrentRates
     
    435422void tr_torrentPeersFree( tr_peer_stat_t *, int peerCount );
    436423
     424typedef struct tr_file_stat_s tr_file_stat_t;
     425tr_file_stat_t * tr_torrentFiles( const tr_torrent_t *, int * fileCount );
     426void tr_torrentFilesFree( tr_file_stat_t *, int fileCount );
     427
     428
    437429/***********************************************************************
    438430 * tr_torrentAvailability
     
    562554#define TR_STATUS_INACTIVE \
    563555    (TR_STATUS_STOPPING|TR_STATUS_STOPPED)
     556
     557typedef enum
     558{
     559    TR_CP_INCOMPLETE,   /* doesn't have all the desired pieces */
     560    TR_CP_DONE,         /* has all the pieces but the DND ones */
     561    TR_CP_COMPLETE      /* has every piece */
     562}
     563cp_status_t;
    564564
    565565/***********************************************************************
     
    604604};
    605605
     606struct tr_file_stat_s
     607{
     608    uint64_t bytesCompleted;
     609    float progress;
     610    cp_status_t completionStatus;
     611};
     612
    606613struct tr_peer_stat_s
    607614{
Note: See TracChangeset for help on using the changeset viewer.