Changeset 7455 for branches/1.4x/libtransmission/bandwidth.h
- Timestamp:
- Dec 22, 2008, 12:51:14 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.4x/libtransmission/bandwidth.h
r7177 r7455 1 1 /* 2 * This file Copyright (C) 2008 Charles Kerr <charles@ rebelbase.com>2 * This file Copyright (C) 2008 Charles Kerr <charles@transmissionbt.com> 3 3 * 4 4 * This file is licensed by the GPL version 2. Works owned by the … … 59 59 * bandwidth they can safely use. 60 60 */ 61 61 62 typedef struct tr_bandwidth tr_bandwidth; 63 64 struct tr_peerIo; 62 65 63 66 /** … … 72 75 /** @brief destroy a tr_bandwidth object */ 73 76 void tr_bandwidthFree ( tr_bandwidth * bandwidth ); 77 78 /** @brief test to see if the pointer refers to a live bandwidth object */ 79 tr_bool tr_isBandwidth ( const tr_bandwidth * bandwidth ); 74 80 75 81 /****** … … 98 104 void tr_bandwidthSetLimited ( tr_bandwidth * bandwidth, 99 105 tr_direction direction, 100 intisLimited );106 tr_bool isLimited ); 101 107 102 108 /** 103 109 * @return nonzero if this bandwidth throttles its iobufs' speeds 104 110 */ 105 inttr_bandwidthIsLimited ( const tr_bandwidth * bandwidth,111 tr_bool tr_bandwidthIsLimited ( const tr_bandwidth * bandwidth, 106 112 tr_direction direction ); 107 113 … … 143 149 tr_direction direction, 144 150 size_t byteCount, 145 intisPieceData );151 tr_bool isPieceData ); 146 152 147 153 /****** … … 160 166 void tr_bandwidthHonorParentLimits ( tr_bandwidth * bandwidth, 161 167 tr_direction direction, 162 intisEnabled );168 tr_bool isEnabled ); 163 169 164 170 /****** … … 167 173 168 174 /** 169 * @brief add a n iobuf to this bandwidth's list of iobufs.175 * @brief add a tr_peerIo to this bandwidth's list. 170 176 * They will be notified when more bandwidth is made available for them to consume. 171 177 */ 172 void tr_bandwidthAdd Buffer( tr_bandwidth * bandwidth,173 struct tr_ iobuf * iobuf);178 void tr_bandwidthAddPeer ( tr_bandwidth * bandwidth, 179 struct tr_peerIo * peerIo ); 174 180 175 181 /** 176 182 * @brief remove an iobuf from this bandwidth's list of iobufs. 177 183 */ 178 void tr_bandwidthRemove Buffer( tr_bandwidth * bandwidth,179 struct tr_ iobuf * iobuf);184 void tr_bandwidthRemovePeer ( tr_bandwidth * bandwidth, 185 struct tr_peerIo * peerIo ); 180 186 181 187 #endif
Note: See TracChangeset
for help on using the changeset viewer.