mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
(trunk libT) add callback notification when a torrent has been moved via RPC
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user