Changeset 9928


Ignore:
Timestamp:
Jan 13, 2010, 10:46:22 PM (12 years ago)
Author:
charles
Message:

(trunk) second half of r9927.... :/

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/rpc-spec.txt

    r9927 r9928  
    259259                      | hasScraped              | boolean    | tr_tracker_stat
    260260                      | host                    | string     | tr_tracker_stat
     261                      | id                      | number     | tr_tracker_stat
    261262                      | isBackup                | boolean    | tr_tracker_stat
    262263                      | lastAnnouncePeerCount   | number     | tr_tracker_stat
  • trunk/libtransmission/announcer.c

    r9927 r9928  
    297297    int downloaderCount;
    298298   
    299     uint32_t identifier;
     299    uint32_t id;
    300300
    301301    /* sent as the "key" argument in tracker requests
     
    323323            const char    * announce,
    324324            const char    * scrape,
    325             uint32_t      identifier )
     325            uint32_t        id )
    326326{
    327327    tr_tracker_item * tracker = tr_new0( tr_tracker_item, 1  );
     
    329329    tracker->announce = tr_strdup( announce );
    330330    tracker->scrape = tr_strdup( scrape );
    331     tracker->identifier = identifier;
     331    tracker->id = id;
    332332    generateKeyParam( tracker->key_param, KEYLEN );
    333333    tracker->seederCount = -1;
     
    454454                const char   * announce,
    455455                const char   * scrape,
    456                 uint32_t     identifier )
    457 {
    458     tr_tracker_item * tracker = trackerNew( announcer, announce, scrape, identifier );
     456                uint32_t       id )
     457{
     458    tr_tracker_item * tracker = trackerNew( announcer, announce, scrape, id );
    459459
    460460    tr_ptrArrayAppend( &tier->trackers, tracker );
     
    17551755            tr_tracker_stat * st = ret + out++;
    17561756
    1757             st->identifier = tracker->identifier;
     1757            st->id = tracker->id;
    17581758            tr_strlcpy( st->host, tracker->host->name, sizeof( st->host ) );
    17591759            tr_strlcpy( st->announce, tracker->announce, sizeof( st->announce ) );
  • trunk/libtransmission/rpcimpl.c

    r9927 r9928  
    383383        tr_bencDictAddBool( d, "hasScraped", s->hasScraped );
    384384        tr_bencDictAddStr ( d, "host", s->host );
    385         tr_bencDictAddInt ( d, "identifier", s->identifier );
     385        tr_bencDictAddInt ( d, "id", s->id );
    386386        tr_bencDictAddBool( d, "isBackup", s->isBackup );
    387387        tr_bencDictAddInt ( d, "lastAnnouncePeerCount", s->lastAnnouncePeerCount );
  • trunk/libtransmission/transmission.h

    r9927 r9928  
    14631463   
    14641464    /* used to match to a tr_tracker_info */
    1465     uint32_t identifier;
     1465    uint32_t id;
    14661466}
    14671467tr_tracker_stat;
Note: See TracChangeset for help on using the changeset viewer.