pass the appropriate tr_torrent object in the ipc controller

This commit is contained in:
Mitchell Livingston 2008-04-07 13:14:31 +00:00
parent f34cd7299f
commit dc27b3b7f2
3 changed files with 7 additions and 7 deletions

View File

@ -487,7 +487,7 @@ PrefsController * fPrefsController;
if( IPC_MSG_INFO == respid )
res = ipc_addinfo( pkinf, [tor torrentID], [tor torrentInfo], types );
else
res = ipc_addstat( pkinf, [tor torrentID], [tor torrentStat], types );
res = ipc_addstat( pkinf, [tor torrentID], [tor torrentStruct], types );
if( 0 > res )
{
tr_bencFree( &packet );

View File

@ -253,7 +253,7 @@ typedef enum
- (NSNumber *) stateSortKey;
- (int) torrentID;
- (tr_torrent *) torrentStruct;
- (const tr_info *) torrentInfo;
- (const tr_stat *) torrentStat;
@end

View File

@ -1512,16 +1512,16 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
return fID;
}
- (tr_torrent *) torrentStruct
{
return fHandle;
}
- (const tr_info *) torrentInfo
{
return fInfo;
}
- (const tr_stat *) torrentStat
{
return fStat;
}
@end
@implementation Torrent (Private)