Ignore:
Timestamp:
Mar 4, 2009, 7:52:57 PM (13 years ago)
Author:
charles
Message:

(trunk) libT and gtk+ parts for #1889: per-torrent vs. global speed limit confusion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.h

    r7988 r8021  
    873873****/
    874874
    875 typedef enum
    876 {
    877     TR_SPEEDLIMIT_GLOBAL,    /* only follow the overall speed limit */
    878     TR_SPEEDLIMIT_SINGLE,    /* only follow the per-torrent limit */
    879     TR_SPEEDLIMIT_UNLIMITED  /* no limits at all */
    880 }
    881 tr_speedlimit;
     875void     tr_torrentSetSpeedLimit( tr_torrent *, tr_direction, int KiB_sec );
     876
     877int      tr_torrentGetSpeedLimit( const tr_torrent *, tr_direction );
     878
     879void     tr_torrentUseSpeedLimit( tr_torrent *, tr_direction, tr_bool do_use );
     880
     881tr_bool  tr_torrentIsUsingSpeedLimit( const tr_torrent *, tr_direction );
     882
     883void     tr_torrentUseGlobalSpeedLimit( tr_torrent *, tr_direction, tr_bool do_use );
     884
     885tr_bool  tr_torrentIsUsingGlobalSpeedLimit ( const tr_torrent *, tr_direction );
     886
     887/****
     888*****  Ratio Limits
     889****/
    882890
    883891typedef enum
     
    888896}
    889897tr_ratiolimit;
    890 
    891 void          tr_torrentSetSpeedMode( tr_torrent     * tor,
    892                                       tr_direction     up_or_down,
    893                                       tr_speedlimit    mode );
    894 
    895 tr_speedlimit tr_torrentGetSpeedMode( const tr_torrent * tor,
    896                                       tr_direction       direction );
    897 
    898 void          tr_torrentSetSpeedLimit( tr_torrent    * tor,
    899                                        tr_direction    up_or_down,
    900                                        int             KiB_sec );
    901 
    902 int           tr_torrentGetSpeedLimit( const tr_torrent  * tor,
    903                                        tr_direction        direction );
    904898
    905899void          tr_torrentSetRatioMode( tr_torrent         * tor,
Note: See TracChangeset for help on using the changeset viewer.