Ignore:
Timestamp:
Apr 2, 2009, 10:59:30 PM (13 years ago)
Author:
charles
Message:

(trunk rpc) add "torrentFile" to the list of allowed arguments to the "torrent-get" method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r8123 r8124  
    591591    tr_torrentUncheck( tor );
    592592
    593     tor->addedDate = time( NULL ); /* this is a default value to be
    594                                       overwritten by the resume file */
     593    tr_torrentSetAddedDate( tor, time( NULL ) ); /* this is a default value to be
     594                                                    overwritten by the resume file */
     595
    595596    loaded = tr_torrentLoadResume( tor, ~0, ctor );
    596597
     
    19161917**/
    19171918
    1918 /** @deprecated this method will be removed in 1.40 */
    19191919void
    19201920tr_torrentSetAddedDate( tr_torrent * tor,
     
    19241924
    19251925    tor->addedDate = t;
    1926 }
    1927 
    1928 /** @deprecated this method will be removed in 1.40 */
     1926    tor->anyDate = MAX( tor->anyDate, tor->addedDate );
     1927}
     1928
    19291929void
    19301930tr_torrentSetActivityDate( tr_torrent * tor,
     
    19341934
    19351935    tor->activityDate = t;
    1936 
    1937     if( tor->anyDate < tor->activityDate )
    1938         tor->anyDate = tor->activityDate;
    1939 }
    1940 
    1941 /** @deprecated this method will be removed in 1.40 */
     1936    tor->anyDate = MAX( tor->anyDate, tor->activityDate );
     1937}
     1938
    19421939void
    19431940tr_torrentSetDoneDate( tr_torrent * tor,
     
    19471944
    19481945    tor->doneDate = t;
    1949 
    1950     if( tor->anyDate < tor->doneDate )
    1951         tor->anyDate = tor->doneDate;
     1946    tor->anyDate = MAX( tor->anyDate, tor->doneDate );
    19521947}
    19531948
Note: See TracChangeset for help on using the changeset viewer.