Ignore:
Timestamp:
Aug 27, 2011, 11:54:10 PM (10 years ago)
Author:
livings124
Message:

add an RPC session callback for when queue order changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/rpcimpl.c

    r12641 r12772  
    188188
    189189static void
    190 notifyBatchChange( tr_session * session, tr_torrent ** torrents, int n )
     190notifyBatchQueueChange( tr_session * session, tr_torrent ** torrents, int n )
    191191{
    192192    int i;
    193193    for( i=0; i<n; ++i )
    194194        notify( session, TR_RPC_TORRENT_CHANGED, torrents[i] );
     195    notify( session, TR_RPC_SESSION_QUEUE_POSITIONS_CHANGED, NULL );
    195196}
    196197
     
    204205    tr_torrent ** torrents = getTorrents( session, args_in, &n );
    205206    tr_torrentsQueueMoveTop( torrents, n );
    206     notifyBatchChange( session, torrents, n );
     207    notifyBatchQueueChange( session, torrents, n );
    207208    tr_free( torrents );
    208209    return NULL;
     
    218219    tr_torrent ** torrents = getTorrents( session, args_in, &n );
    219220    tr_torrentsQueueMoveUp( torrents, n );
    220     notifyBatchChange( session, torrents, n );
     221    notifyBatchQueueChange( session, torrents, n );
    221222    tr_free( torrents );
    222223    return NULL;
     
    232233    tr_torrent ** torrents = getTorrents( session, args_in, &n );
    233234    tr_torrentsQueueMoveDown( torrents, n );
    234     notifyBatchChange( session, torrents, n );
     235    notifyBatchQueueChange( session, torrents, n );
    235236    tr_free( torrents );
    236237    return NULL;
     
    246247    tr_torrent ** torrents = getTorrents( session, args_in, &n );
    247248    tr_torrentsQueueMoveBottom( torrents, n );
    248     notifyBatchChange( session, torrents, n );
     249    notifyBatchQueueChange( session, torrents, n );
    249250    tr_free( torrents );
    250251    return NULL;
Note: See TracChangeset for help on using the changeset viewer.