Changeset 2332
- Timestamp:
- Jul 13, 2007, 12:27:47 AM (15 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/torrent.c
r2330 r2332 1161 1161 1162 1162 void 1163 tr_torrentSetFilePriorities( tr_torrent_t * tor, 1164 const tr_priority_t * filePriorities ) 1163 tr_torrentSetFilePriorities( tr_torrent_t * tor, 1164 int * files, 1165 int fileCount, 1166 tr_priority_t priority ) 1165 1167 { 1166 1168 int i; 1167 for( i=0; i<tor->info.pieceCount; ++i ) 1168 tr_torrentSetFilePriorityImpl( tor, i, filePriorities[i], FALSE ); 1169 for( i=0; i<fileCount; ++i ) { 1170 const int fileIndex = files[i]; 1171 tr_torrentSetFilePriorityImpl( tor, fileIndex, priority, FALSE ); 1172 } 1169 1173 fastResumeSave( tor ); 1170 1174 } -
trunk/libtransmission/transmission.h
r2330 r2332 214 214 typedef int8_t tr_priority_t; 215 215 216 /* priorities should be an array of tor->info.fileCount bytes, 217 * each holding a value of TR_PRI_NORMAL, _HIGH, or _LOW */ 218 void tr_torrentSetFilePriorities ( tr_torrent_t *, const tr_priority_t * priorities ); 216 /* set a batch of files to a particular priority. */ 217 void tr_torrentSetFilePriorities( tr_torrent_t * tor, 218 int * files, 219 int fileCount, 220 tr_priority_t priority ); 221 219 222 220 223 /* single-file form of tr_torrentPrioritizeFiles.
Note: See TracChangeset
for help on using the changeset viewer.