Changeset 1912


Ignore:
Timestamp:
May 23, 2007, 4:45:20 AM (14 years ago)
Author:
joshe
Message:

Remove tr_handle_t argument from tr_torrentClose().

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/beos/TRWindow.cpp

    r1576 r1912  
    312312                // Remove the file from the filesystem.
    313313                TRTransfer *item = (TRTransfer*)transfers->RemoveItem(index);
    314                 tr_torrentClose(engine, item->GetTorrent());
     314                tr_torrentClose(item->GetTorrent());
    315315                BEntry *entry = new BEntry(item->GetCachedPath(), true);
    316316                entry->Remove();
  • trunk/cli/transmissioncli.c

    r1770 r1912  
    284284   
    285285cleanup:
    286     tr_torrentClose( h, tor );
     286    tr_torrentClose( tor );
    287287    tr_close( h );
    288288
  • trunk/daemon/torrents.c

    r1732 r1912  
    643643        if( TR_STATUS_PAUSE & st->status )
    644644        {
    645             tr_torrentClose( gl_handle, tor->tor );
     645            tr_torrentClose( tor->tor );
    646646            RB_REMOVE( tortree, &gl_tree, tor );
    647647            RB_REMOVE( hashtree, &gl_hashes, tor );
     
    674674            {
    675675                next = RB_NEXT( tortree, &gl_tree, tor );
    676                 tr_torrentClose( gl_handle, tor->tor );
     676                tr_torrentClose( tor->tor );
    677677                RB_REMOVE( tortree, &gl_tree, tor );
    678678                RB_REMOVE( hashtree, &gl_hashes, tor );
  • trunk/gtk/tr_torrent.c

    r1910 r1912  
    239239    if(!tr_torrent_paused(self))
    240240      tr_torrentStop(self->handle);
    241     tr_torrentClose( tr_core_handle( TR_CORE( self->core) ) , self->handle );
     241    tr_torrentClose( self->handle );
    242242    self->handle = NULL;
    243243  }
  • trunk/libtransmission/torrent.c

    r1869 r1912  
    664664 * Frees memory allocated by tr_torrentInit.
    665665 **********************************************************************/
    666 void tr_torrentClose( tr_handle_t * h, tr_torrent_t * tor )
    667 {
     666void tr_torrentClose( tr_torrent_t * tor )
     667{
     668    tr_handle_t * h = tor->handle;
    668669    tr_info_t * inf = &tor->info;
    669670
  • trunk/libtransmission/transmission.h

    r1868 r1912  
    368368 * you must call tr_torrentStop() before closing it.
    369369 **********************************************************************/
    370 void tr_torrentClose( tr_handle_t *, tr_torrent_t * );
     370void tr_torrentClose( tr_torrent_t * );
    371371
    372372/***********************************************************************
  • trunk/macosx/Controller.m

    r1900 r1912  
    783783    [torrentPath release];
    784784
    785     tr_torrentClose(fLib, tempTor);
     785    tr_torrentClose(tempTor);
    786786    [panel beginSheetForDirectory: nil file: nil types: nil modalForWindow: fWindow modalDelegate: self
    787787            didEndSelector: @selector(folderChoiceClosed:returnCode:contextInfo:) contextInfo: dictionary];
     
    19721972       
    19731973        if (tempTor)
    1974             tr_torrentClose(fLib, tempTor);
     1974            tr_torrentClose(tempTor);
    19751975        else if (error != TR_EUNSUPPORTED && error != TR_EDUPLICATE)
    19761976            [fAutoImportedNames removeObject: [file lastPathComponent]]; //can try to import later
     
    21022102            if ((tempTor = tr_torrentInit(fLib, [file UTF8String], NULL, 0, &error)))
    21032103            {
    2104                 tr_torrentClose(fLib, tempTor);
     2104                tr_torrentClose(tempTor);
    21052105               
    21062106                [fOverlayWindow setFiles: files];
     
    21432143            if ((tempTor = tr_torrentInit(fLib, [file UTF8String], NULL, 0, &error)))
    21442144            {
    2145                 tr_torrentClose(fLib, tempTor);
     2145                tr_torrentClose(tempTor);
    21462146                [filesToOpen addObject: file];
    21472147            }
  • trunk/macosx/DragOverlayWindow.m

    r1902 r1912  
    9999            }
    100100           
    101             tr_torrentClose(fLib, tempTor);
     101            tr_torrentClose(tempTor);
    102102        }
    103103    }
  • trunk/macosx/Torrent.m

    r1871 r1912  
    184184    if (fHandle)
    185185    {
    186         tr_torrentClose(fLib, fHandle);
     186        tr_torrentClose(fHandle);
    187187       
    188188        if (fDownloadFolder)
Note: See TracChangeset for help on using the changeset viewer.