Changeset 1279


Ignore:
Timestamp:
Dec 26, 2006, 6:40:51 PM (16 years ago)
Author:
livings124
Message:

better placement of manual announce

Location:
trunk/libtransmission
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tracker.c

    r1278 r1279  
    9393static void        setAnnounce      ( tr_tracker_t * tc, tr_announce_list_ptr_t * announceItem );
    9494static void        failureAnnouncing( tr_tracker_t * tc );
    95 void               trackerPulse     ( tr_tracker_t *, int );
    9695static tr_http_t * getQuery         ( tr_tracker_t * tc );
    9796static tr_http_t * getScrapeQuery   ( tr_tracker_t * tc );
     
    324323}
    325324
    326 void trackerPulse( tr_tracker_t * tc, int manual )
     325void tr_trackerAnnouncePulse( tr_tracker_t * tc, int manual )
    327326{
    328327    tr_torrent_t * tor = tc->tor;
  • trunk/libtransmission/tracker.h

    r1278 r1279  
    3131void           tr_trackerChangePort( tr_tracker_t *, int );
    3232
    33 #define tr_trackerPulse( tc ) trackerPulse( (tc), 0 )
    34 #define tr_trackerPulseManual( tc ) trackerPulse( (tc), 1 )
     33#define tr_trackerPulse( tc ) tr_trackerAnnouncePulse( (tc), 0 )
     34void           tr_trackerAnnouncePulse( tr_tracker_t *, int );
    3535
    36 void           tr_trackerCompleted ( tr_tracker_t * );
    37 void           tr_trackerStopped   ( tr_tracker_t * );
    38 void           tr_trackerClose     ( tr_tracker_t * );
     36void           tr_trackerCompleted( tr_tracker_t * );
     37void           tr_trackerStopped  ( tr_tracker_t * );
     38void           tr_trackerClose    ( tr_tracker_t * );
    3939
    4040/***********************************************************************
  • trunk/libtransmission/transmission.c

    r1259 r1279  
    452452}
    453453
     454void tr_manualUpdate( tr_torrent_t * tor )
     455{
     456    tr_trackerAnnouncePulse( tor->tracker, 1 );
     457}
     458
    454459tr_stat_t * tr_torrentStat( tr_torrent_t * tor )
    455460{
  • trunk/libtransmission/transmission.h

    r1255 r1279  
    247247
    248248/***********************************************************************
     249 * tr_manualUpdate
     250 ***********************************************************************
     251 * Reannounce to tracker regardless of wait interval
     252 **********************************************************************/
     253void tr_manualUpdate( tr_torrent_t * );
     254
     255/***********************************************************************
    249256 * tr_torrentStat
    250257 ***********************************************************************
Note: See TracChangeset for help on using the changeset viewer.