From dc27b3b7f2a08a31e98739de97971fcb5734598c Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 7 Apr 2008 13:14:31 +0000 Subject: [PATCH] pass the appropriate tr_torrent object in the ipc controller --- macosx/IPCController.m | 2 +- macosx/Torrent.h | 2 +- macosx/Torrent.m | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/macosx/IPCController.m b/macosx/IPCController.m index 0cdbec8cc..a031e81e8 100644 --- a/macosx/IPCController.m +++ b/macosx/IPCController.m @@ -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 ); diff --git a/macosx/Torrent.h b/macosx/Torrent.h index e4a8952fa..6c5af4481 100644 --- a/macosx/Torrent.h +++ b/macosx/Torrent.h @@ -253,7 +253,7 @@ typedef enum - (NSNumber *) stateSortKey; - (int) torrentID; +- (tr_torrent *) torrentStruct; - (const tr_info *) torrentInfo; -- (const tr_stat *) torrentStat; @end diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 5f18d86b9..54accb47e 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -1512,14 +1512,14 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void * 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 -- 2.40.0