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/transmission.h

    r7195 r7199  
    996996typedef enum
    997997{
    998     TR_CP_INCOMPLETE,   /* doesn't have all the desired pieces */
    999     TR_CP_DONE,         /* has all the desired pieces, but not all pieces */
    1000     TR_CP_COMPLETE      /* has every piece */
     998    TR_LEECH,           /* doesn't have all the desired pieces */
     999    TR_SEED,            /* has the entire torrent */
     1000    TR_PARTIAL_SEED     /* has the desired pieces, but not the entire torrent */
    10011001}
    10021002tr_completeness;
     
    10091009 * Register to be notified whenever a torrent's "completeness"
    10101010 * changes.  This will be called, for example, when a torrent
    1011  * finishes downloading and changes from TR_CP_INCOMPLETE to
    1012  * either TR_CP_COMPLETE or TR_CP_DONE.
     1011 * finishes downloading and changes from TR_LEECH to
     1012 * either TR_SEED or TR_PARTIAL_SEED.
    10131013 *
    10141014 * func is invoked FROM LIBTRANSMISSION'S THREAD!
     
    13271327
    13281328    /** Byte count of all the piece data we'll have downloaded when we're done,
    1329         whether or not we have it yet. [0...tr_info.totalSize] */
     1329        whether or not we have it yet.  This may be less than tr_info.totalSize
     1330        if only some of the torrent's files are wanted.
     1331        [0...tr_info.totalSize] */
    13301332    uint64_t    sizeWhenDone;
    13311333
    1332     /** Byte count of how much data is left to be downloaded until
    1333         we're done -- that is, until we've got all the pieces we wanted.
    1334         [0...tr_info.sizeWhenDone] */
     1334    /** Byte count of how much data is left to be downloaded until we've got
     1335        all the pieces that we want.  [0...tr_info.sizeWhenDone] */
    13351336    uint64_t    leftUntilDone;
    13361337
Note: See TracChangeset for help on using the changeset viewer.