Changeset 5700


Ignore:
Timestamp:
Apr 25, 2008, 7:46:36 PM (14 years ago)
Author:
charles
Message:

add tr_webClose()

Location:
trunk/libtransmission
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.c

    r5673 r5700  
    391391    tr_torrent * t;
    392392
     393    tr_webClose( h->web );
    393394    tr_sharedShuttingDown( h->shared );
    394395    tr_trackerShuttingDown( h );
  • trunk/libtransmission/upnp.c

    r5600 r5700  
    1515#include <stdio.h> /* snprintf */
    1616
    17 #include <miniupnp/miniwget.h>
    1817#include <miniupnp/miniupnpc.h>
    1918#include <miniupnp/upnpcommands.h>
  • trunk/libtransmission/web.c

    r5698 r5700  
    88 * the Transmission project.
    99 *
    10  * $Id:$
     10 * $Id$
    1111 */
    1212
     
    307307
    308308    return web;
     309}
     310
     311void
     312tr_webClose( tr_web * web )
     313{
     314    evtimer_del( &web->timer );
     315    curl_multi_cleanup( web->cm );
     316    tr_free( web );
    309317}
    310318
  • trunk/libtransmission/web.h

    r5698 r5700  
    88 * the Transmission project.
    99 *
    10  * $Id:$
     10 * $Id$
    1111 */
    1212
     
    1818
    1919tr_web* tr_webInit( tr_handle * session );
     20
     21void tr_webClose( tr_web * );
    2022
    2123typedef void (tr_web_done_func)( tr_handle    * session,
Note: See TracChangeset for help on using the changeset viewer.