Lines Matching refs:tr_tier
34 struct tr_tier;
36 static void tier_build_log_name( const struct tr_tier * tier,
200 /* a row in tr_tier's list of trackers */
266 typedef struct tr_tier
313 tr_tier;
316 get_next_scrape_time( const tr_session * session, const tr_tier * tier, int interval )
338 tierConstruct( tr_tier * tier, tr_torrent * tor )
342 memset( tier, 0, sizeof( tr_tier ) );
354 tierDestruct( tr_tier * tier )
360 tier_build_log_name( const tr_tier * tier, char * buf, size_t buflen )
368 tierIncrementTracker( tr_tier * tier )
398 tr_tier * tiers;
436 static tr_tier*
439 tr_tier * tier = NULL;
467 publishMessage( tr_tier * tier, const char * msg, int type )
483 publishErrorClear( tr_tier * tier )
489 publishWarning( tr_tier * tier, const char * msg )
495 publishError( tr_tier * tier, const char * msg )
501 getSeedProbability( tr_tier * tier, int seeds, int leechers, int pex_count )
518 publishPeersPex( tr_tier * tier, int seeds, int leechers,
650 tr_tier * tier;
668 tt->tiers = tr_new0( tr_tier, tier_count );
709 tierCanManualAnnounce( const tr_tier * tier )
750 dbgmsg_tier_announce_queue( const tr_tier * tier )
774 tier_announce_remove_trailing( tr_tier * tier, tr_announce_event e )
782 tier_announce_event_push( tr_tier * tier,
831 tier_announce_event_pull( tr_tier * tier )
903 const tr_tier * tier,
938 tr_tier * tier = &tt->tiers[i];
984 on_announce_error( tr_tier * tier, const char * err, tr_announce_event e )
1013 tr_tier * tier = getTier( announcer, response->info_hash, data->tierId );
1214 tierAnnounce( tr_announcer * announcer, tr_tier * tier )
1249 on_scrape_error( tr_session * session, tr_tier * tier, const char * errmsg )
1273 static tr_tier *
1303 tr_tier * tier = find_tier( tor, response->url );
1404 tr_tier * tier = tr_ptrArrayNth( tiers, i );
1458 tierNeedsToAnnounce( const tr_tier * tier, const time_t now )
1468 tierNeedsToScrape( const tr_tier * tier, const time_t now )
1481 const tr_tier * a = *(const tr_tier**)va;
1482 const tr_tier * b = *(const tr_tier**)vb;
1515 tr_tier * tier = &tt->tiers[i];
1526 qsort( tr_ptrArrayBase(&announceMe), n, sizeof(tr_tier*), compareTiers );
1531 tr_tier * tier = tr_ptrArrayNth( &announceMe, i );
1600 const tr_tier * const tier = &tt->tiers[i];
1691 copy_tier_attributes_impl( struct tr_tier * tgt, int trackerIndex, const tr_tier * src )
1693 const tr_tier keep = *tgt;
1699 /* bitwise copy will handle most of tr_tier's fields... */
1718 copy_tier_attributes( struct tr_torrent_tiers * tt, const tr_tier * src )