Changeset 12615
- Timestamp:
- Aug 3, 2011, 3:14:57 AM (12 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/peer-mgr.c
r12607 r12615 3573 3573 for( i=0; i<n; i++ ) { 3574 3574 tr_torrent * tor = tr_sessionGetNextQueuedTorrent( session, dir ); 3575 if( tor != NULL ) 3575 if( tor != NULL ) { 3576 3576 tr_torrentStartNow( tor ); 3577 if( tor->queue_started_callback != NULL ) 3578 (*tor->queue_started_callback)( tor ); 3579 } 3577 3580 } 3578 3581 } -
trunk/libtransmission/torrent.c
r12613 r12615 3322 3322 } 3323 3323 } 3324 3325 void 3326 tr_torrentSetQueueStartCallback( tr_torrent * torrent, void (*callback)( tr_torrent * ) ) 3327 { 3328 torrent->queue_started_callback = callback; 3329 } 3330 3331 -
trunk/libtransmission/torrent.h
r12611 r12615 236 236 tr_torrent_idle_limit_hit_func * idle_limit_hit_func; 237 237 void * idle_limit_hit_func_user_data; 238 239 void ( * queue_started_callback )( tr_torrent * ); 238 240 239 241 bool isRunning; -
trunk/libtransmission/transmission.h
r12611 r12615 809 809 int tr_sessionGetQueueStalledMinutes( const tr_session * ); 810 810 811 /** @brief Set a callback that is invoked when the queue starts a torrent */ 812 void tr_torrentSetQueueStartCallback( tr_torrent * torrent, void (*callback)( tr_torrent * ) ); 813 811 814 812 815 /***
Note: See TracChangeset
for help on using the changeset viewer.