Changeset 994 for trunk/macosx


Ignore:
Timestamp:
Oct 12, 2006, 11:34:20 PM (15 years ago)
Author:
livings124
Message:

Initial attempt at against the completeness of a specific piece.

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PiecesView.m

    r989 r994  
    258258        [image unlockFocus];
    259259        [fImageView setNeedsDisplay];
     260       
     261        /*int8_t * piecesC = malloc(fNumPieces);
     262        [fTorrent getAmountFinished: piecesC size: fNumPieces];
     263        for (i = 0; i < fNumPieces; i++)
     264            NSLog(@"%d", piecesC[i]);
     265        free(piecesC);*/
    260266    }
    261267   
  • trunk/macosx/Torrent.h

    r985 r994  
    6565- (void)       setDownloadFolder: (NSString *) path;
    6666- (NSString *) downloadFolder;
    67 - (void)       getAvailability: (int8_t *) tab size: (int) size;
     67
     68- (void) getAvailability: (int8_t *) tab size: (int) size;
     69- (void) getAmountFinished: (int8_t *) tab size: (int) size;
    6870
    6971- (void)            update;
  • trunk/macosx/Torrent.m

    r993 r994  
    163163{
    164164    tr_torrentAvailability(fHandle, tab, size);
     165}
     166
     167- (void) getAmountFinished: (int8_t *) tab size: (int) size
     168{
     169    tr_torrentAmountFinished(fHandle, tab, size);
    165170}
    166171
Note: See TracChangeset for help on using the changeset viewer.