Changeset 2361 for trunk/libtransmission/transmission.h
- Timestamp:
- Jul 15, 2007, 8:05:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/transmission.h
r2360 r2361 246 246 void tr_torrentSetFileDL( tr_torrent_t *, int file, int do_download ); 247 247 248 249 typedef enum250 {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 261 248 /*********************************************************************** 262 249 * tr_torrentRates … … 435 422 void tr_torrentPeersFree( tr_peer_stat_t *, int peerCount ); 436 423 424 typedef struct tr_file_stat_s tr_file_stat_t; 425 tr_file_stat_t * tr_torrentFiles( const tr_torrent_t *, int * fileCount ); 426 void tr_torrentFilesFree( tr_file_stat_t *, int fileCount ); 427 428 437 429 /*********************************************************************** 438 430 * tr_torrentAvailability … … 562 554 #define TR_STATUS_INACTIVE \ 563 555 (TR_STATUS_STOPPING|TR_STATUS_STOPPED) 556 557 typedef 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 } 563 cp_status_t; 564 564 565 565 /*********************************************************************** … … 604 604 }; 605 605 606 struct tr_file_stat_s 607 { 608 uint64_t bytesCompleted; 609 float progress; 610 cp_status_t completionStatus; 611 }; 612 606 613 struct tr_peer_stat_s 607 614 {
Note: See TracChangeset
for help on using the changeset viewer.