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 );
- (NSNumber *) stateSortKey;
- (int) torrentID;
+- (tr_torrent *) torrentStruct;
- (const tr_info *) torrentInfo;
-- (const tr_stat *) torrentStat;
@end
return fID;
}
-- (const tr_info *) torrentInfo
+- (tr_torrent *) torrentStruct
{
- return fInfo;
+ return fHandle;
}
-- (const tr_stat *) torrentStat
+- (const tr_info *) torrentInfo
{
- return fStat;
+ return fInfo;
}
@end