pass the appropriate tr_torrent object in the ipc controller
This commit is contained in:
parent
f34cd7299f
commit
dc27b3b7f2
|
@ -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 );
|
||||
|
|
|
@ -253,7 +253,7 @@ typedef enum
|
|||
- (NSNumber *) stateSortKey;
|
||||
|
||||
- (int) torrentID;
|
||||
- (tr_torrent *) torrentStruct;
|
||||
- (const tr_info *) torrentInfo;
|
||||
- (const tr_stat *) torrentStat;
|
||||
|
||||
@end
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue