Ignore:
Timestamp:
Nov 30, 2008, 1:52:45 AM (12 years ago)
Author:
charles
Message:

#1379 lay some very early groundwork for "partial seeds" -- change tr_completion's enum to use the partial seed terminology

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r7158 r7199  
    751751    if( !tor->isRunning )
    752752        return TR_STATUS_STOPPED;
    753     if( tor->completeness == TR_CP_INCOMPLETE )
     753    if( tor->completeness == TR_LEECH )
    754754        return TR_STATUS_DOWNLOAD;
    755755
     
    12621262           "Done" means we're done downloading the files we wanted, but NOT all
    12631263           that exist */
    1264         case TR_CP_DONE:
     1264        case TR_PARTIAL_SEED:
    12651265            return _( "Done" );
    12661266
    1267         case TR_CP_COMPLETE:
     1267        case TR_SEED:
    12681268            return _( "Complete" );
    12691269
     
    12781278{
    12791279    assert( tor );
    1280     assert( ( status == TR_CP_INCOMPLETE )
    1281          || ( status == TR_CP_DONE )
    1282          || ( status == TR_CP_COMPLETE ) );
     1280    assert( ( status == TR_LEECH )
     1281         || ( status == TR_SEED )
     1282         || ( status == TR_PARTIAL_SEED ) );
    12831283
    12841284    if( tor->completeness_func )
     
    13251325        fireCompletenessChange( tor, completeness );
    13261326
    1327         if( recentChange && ( completeness == TR_CP_COMPLETE ) )
     1327        if( recentChange && ( completeness == TR_SEED ) )
    13281328        {
    13291329            tr_trackerCompleted( tor->tracker );
     
    13411341tr_torrentIsSeed( const tr_torrent * tor )
    13421342{
    1343     return tor->completeness == TR_CP_COMPLETE || tor->completeness == TR_CP_DONE;
     1343    return tor->completeness == TR_SEED || tor->completeness == TR_PARTIAL_SEED;
    13441344}
    13451345
Note: See TracChangeset for help on using the changeset viewer.