(trunk libT) add callback notification when a torrent has been moved via RPC

This commit is contained in:
Charles Kerr 2009-10-21 14:02:02 +00:00
parent 0281256288
commit 95989a0b21
2 changed files with 2 additions and 1 deletions

View File

@ -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 );

View File

@ -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;