Ignore:
Timestamp:
Jan 3, 2009, 12:25:27 AM (14 years ago)
Author:
charles
Message:

(trunk libT) inline a few more torrent methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r7584 r7591  
    661661}
    662662
    663 tr_bool
    664 tr_torrentIsPrivate( const tr_torrent * tor )
    665 {
    666     return tor
    667         && tor->info.isPrivate;
    668 }
    669 
    670 tr_bool
    671 tr_torrentAllowsPex( const tr_torrent * tor )
    672 {
    673     return tor
    674         && tor->session->isPexEnabled
    675         && !tr_torrentIsPrivate( tor );
    676 }
    677 
    678663static inline void
    679664tr_torrentManualUpdateImpl( void * vtor )
     
    13131298}
    13141299
    1315 tr_bool
    1316 tr_torrentIsSeed( const tr_torrent * tor )
    1317 {
    1318     return tor->completeness != TR_LEECH;
    1319 }
    1320 
    13211300/**
    13221301***  File priorities
     
    15741553****
    15751554***/
    1576 
    1577 tr_bool
    1578 tr_torrentIsPieceChecked( const tr_torrent * tor,
    1579                           tr_piece_index_t   piece )
    1580 {
    1581     return tr_bitfieldHas( &tor->checkedPieces, piece );
    1582 }
    15831555
    15841556void
Note: See TracChangeset for help on using the changeset viewer.