Changeset 10851
- Timestamp:
- Jun 25, 2010, 3:39:17 PM (12 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/torrent.c
r10848 r10851 1617 1617 fireCompletenessChange( tr_torrent * tor, 1618 1618 tr_completeness status, 1619 tr_bool was Paused)1619 tr_bool wasRunning ) 1620 1620 { 1621 1621 assert( tr_isTorrent( tor ) ); … … 1625 1625 1626 1626 if( tor->completeness_func ) 1627 tor->completeness_func( tor, status, was Paused,1627 tor->completeness_func( tor, status, wasRunning, 1628 1628 tor->completeness_func_user_data ); 1629 1629 } … … 1705 1705 tr_torrentRecheckCompleteness( tr_torrent * tor ) 1706 1706 { 1707 tr_bool was Paused;1707 tr_bool wasRunning; 1708 1708 tr_completeness completeness; 1709 1709 … … 1713 1713 1714 1714 completeness = tr_cpGetStatus( &tor->completion ); 1715 was Paused= tor->isRunning;1715 wasRunning = tor->isRunning; 1716 1716 1717 1717 if( completeness != tor->completeness ) … … 1746 1746 } 1747 1747 1748 fireCompletenessChange( tor, was Paused, completeness );1748 fireCompletenessChange( tor, wasRunning, completeness ); 1749 1749 1750 1750 tr_torrentSetDirty( tor ); -
trunk/libtransmission/transmission.h
r10848 r10851 1276 1276 1277 1277 /** 1278 * @param was Paused whether or not the torrent was in a paused statewhen1279 * it changed its completeness state1278 * @param wasRunning whether or not the torrent was running when 1279 * it changed its completeness state 1280 1280 */ 1281 1281 typedef void ( tr_torrent_completeness_func )( tr_torrent * torrent, 1282 1282 tr_completeness completeness, 1283 tr_bool was Paused,1283 tr_bool wasRunning, 1284 1284 void * user_data ); 1285 1285
Note: See TracChangeset
for help on using the changeset viewer.