(trunk libT) add callback notification when a torrent has been moved via RPC
This commit is contained in:
parent
0281256288
commit
95989a0b21
|
@ -811,7 +811,7 @@ torrentSetLocation( tr_session * session,
|
|||
{
|
||||
tr_torrent * tor = torrents[i];
|
||||
tr_torrentSetLocation( tor, location, move, NULL, NULL );
|
||||
notify( session, TR_RPC_TORRENT_CHANGED, tor );
|
||||
notify( session, TR_RPC_TORRENT_MOVED, tor );
|
||||
}
|
||||
|
||||
tr_free( torrents );
|
||||
|
|
|
@ -452,6 +452,7 @@ typedef enum
|
|||
TR_RPC_TORRENT_STOPPED,
|
||||
TR_RPC_TORRENT_REMOVING,
|
||||
TR_RPC_TORRENT_CHANGED, /* catch-all for the "torrent-set" rpc method */
|
||||
TR_RPC_TORRENT_MOVED,
|
||||
TR_RPC_SESSION_CHANGED
|
||||
}
|
||||
tr_rpc_callback_type;
|
||||
|
|
Loading…
Reference in New Issue