Changeset 1286


Ignore:
Timestamp:
Dec 27, 2006, 12:22:38 AM (15 years ago)
Author:
livings124
Message:

make function names a little more specific

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.c

    r1282 r1286  
    191191}
    192192
    193 /***********************************************************************
    194  * tr_setUploadLimit
    195  ***********************************************************************
    196  *
    197  **********************************************************************/
    198 void tr_setUploadLimit( tr_handle_t * h, int limit )
     193void tr_setGlobalUploadLimit( tr_handle_t * h, int limit )
    199194{
    200195    tr_rcSetLimit( h->upload, limit );
     
    202197}
    203198
    204 /***********************************************************************
    205  * tr_setDownloadLimit
    206  ***********************************************************************
    207  *
    208  **********************************************************************/
    209 void tr_setDownloadLimit( tr_handle_t * h, int limit )
     199void tr_setGlobalDownloadLimit( tr_handle_t * h, int limit )
    210200{
    211201    tr_rcSetLimit( h->download, limit );
    212202}
    213203
    214 /***********************************************************************
    215  * tr_torrentRates
    216  ***********************************************************************
    217  *
    218  **********************************************************************/
    219204void tr_torrentRates( tr_handle_t * h, float * dl, float * ul )
    220205{
  • trunk/libtransmission/transmission.h

    r1279 r1286  
    132132
    133133/***********************************************************************
    134  * tr_setUploadLimit
     134 * tr_setGlobalUploadLimit
    135135 ***********************************************************************
    136136 * Sets the total upload rate limit in KB/s
    137137 **********************************************************************/
    138 void tr_setUploadLimit( tr_handle_t *, int );
    139 
    140 /***********************************************************************
    141  * tr_setDownloadLimit
     138void tr_setGlobalUploadLimit( tr_handle_t *, int );
     139
     140/***********************************************************************
     141 * tr_setGlobalDownloadLimit
    142142 ***********************************************************************
    143143 * Sets the total download rate limit in KB/s
    144144 **********************************************************************/
    145 void tr_setDownloadLimit( tr_handle_t *, int );
     145void tr_setGlobalDownloadLimit( tr_handle_t *, int );
    146146
    147147/***********************************************************************
  • trunk/macosx/PrefsController.m

    r1065 r1286  
    302302    if ([fDefaults boolForKey: @"SpeedLimit"])
    303303    {
    304         tr_setUploadLimit(fHandle, [fDefaults integerForKey: @"SpeedLimitUploadLimit"]);
    305         tr_setDownloadLimit(fHandle, [fDefaults integerForKey: @"SpeedLimitDownloadLimit"]);
    306     }
    307     else
    308     {
    309         tr_setUploadLimit(fHandle, [fDefaults boolForKey: @"CheckUpload"]
     304        tr_setGlobalUploadLimit(fHandle, [fDefaults integerForKey: @"SpeedLimitUploadLimit"]);
     305        tr_setGlobalDownloadLimit(fHandle, [fDefaults integerForKey: @"SpeedLimitDownloadLimit"]);
     306    }
     307    else
     308    {
     309        tr_setGlobalUploadLimit(fHandle, [fDefaults boolForKey: @"CheckUpload"]
    310310                                        ? [fDefaults integerForKey: @"UploadLimit"] : -1);
    311         tr_setDownloadLimit(fHandle, [fDefaults boolForKey: @"CheckDownload"]
     311        tr_setGlobalDownloadLimit(fHandle, [fDefaults boolForKey: @"CheckDownload"]
    312312                                        ? [fDefaults integerForKey: @"DownloadLimit"] : -1);
    313313    }
Note: See TracChangeset for help on using the changeset viewer.