Ignore:
Timestamp:
Oct 19, 2009, 5:05:00 AM (12 years ago)
Author:
charles
Message:

(trunk) #1483: move completed torrents to a user-specified directory + #629: different file extension for incomplete files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.h

    r9170 r9328  
    158158    uint8_t * peer_id;
    159159
    160     /* Where to download */
     160    /* Where the files will be when it's complete */
    161161    char * downloadDir;
     162
     163    /* Where the files are when the torrent is incomplete */
     164    char * incompleteDir;
     165
     166    /* Where the files are now.
     167     * This pointer will be equal to downloadDir or incompleteDir */
     168    const char * currentDir;
    162169
    163170    /* How many bytes we ask for per request */
     
    348355}
    349356
     357/**
     358 * Get the file that exists on the disk, or NULL if no file exists yet.
     359 * @return the file that exists on the disk, or NULL if no file exists yet.
     360 * @param tor the torrent whose file we're using
     361 * @param fileNum the fileIndex, in [0..tor->info.fileCount)
     362 */
     363char* tr_torrentFindFile( const tr_torrent * tor, tr_file_index_t fileNo );
     364
     365/**
     366 * Tell the tr_torrent that one of its files has become complete
     367 */
     368void tr_torrentFileCompleted( tr_torrent * tor, tr_file_index_t fileNo );
     369
     370
    350371#endif
Note: See TracChangeset for help on using the changeset viewer.