Changeset 5912


Ignore:
Timestamp:
May 23, 2008, 1:18:17 PM (14 years ago)
Author:
charles
Message:

add `hashString' to torrent-stat's response

Location:
trunk
Files:
2 edited

Legend:

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

    r5906 r5912  
    153153
    154154   Response arguments: "torrent-status", an array of objects
    155    identical to libtransmission's tr_stat struct.
     155   based on libtransmission's tr_stat struct but different
     156   in the following ways:
     157   (1) tr_info's "hashString" field is added.
    156158
    1571593.5.  Adding a Torrent
  • trunk/libtransmission/rpc.c

    r5911 r5912  
    167167        const tr_stat * st = tr_torrentStat( tor );
    168168        const int * f = st->peersFrom;
    169         tr_benc * d = tr_bencListAddDict( list, 40 );
     169        tr_benc * d = tr_bencListAddDict( list, 41 );
    170170        tr_benc * t;
    171171
     
    180180        tr_bencDictAddStr( d, "errorString", st->errorString );
    181181        tr_bencDictAddInt( d, "eta", st->eta );
     182        tr_bencDictAddStr( d, "hashString", tor->info.hashString );
    182183        tr_bencDictAddInt( d, "haveUnchecked", st->haveUnchecked );
    183184        tr_bencDictAddInt( d, "haveValid", st->haveValid );
Note: See TracChangeset for help on using the changeset viewer.