]> granicus.if.org Git - transmission/commitdiff
pass the appropriate tr_torrent object in the ipc controller
authorMitchell Livingston <livings124@transmissionbt.com>
Mon, 7 Apr 2008 13:14:31 +0000 (13:14 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Mon, 7 Apr 2008 13:14:31 +0000 (13:14 +0000)
macosx/IPCController.m
macosx/Torrent.h
macosx/Torrent.m

index 0cdbec8cc1a6efd9be8faa1fb234ec2273bbbfc6..a031e81e809b3a31e12756a3dddf14d38b264a43 100644 (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 );
index e4a8952fa4b5ea8caf83bca15668bda5938c211d..6c5af44810a1ffba9ed10fe8737accda1a9f172c 100644 (file)
@@ -253,7 +253,7 @@ typedef enum
 - (NSNumber *) stateSortKey;
 
 - (int) torrentID;
+- (tr_torrent *) torrentStruct;
 - (const tr_info *) torrentInfo;
-- (const tr_stat *) torrentStat;
 
 @end
index 5f18d86b90668adfbfb6c6f8da36e4187364c114..54accb47eb9f906bdfe9aceb4e42c51ececff0a9 100644 (file)
@@ -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