Ignore:
Timestamp:
May 20, 2010, 3:30:18 PM (12 years ago)
Author:
charles
Message:

(trunk libT) make tr_peerIoEnable*() inline functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.c

    r10534 r10671  
    714714**/
    715715
    716 void
    717 tr_peerIoEnableFEXT( tr_peerIo * io,
    718                      tr_bool     flag )
    719 {
    720     assert( tr_isPeerIo( io ) );
    721     assert( tr_isBool( flag ) );
    722 
    723     dbgmsg( io, "setting FEXT support flag to %d", (flag!=0) );
    724     io->fastExtensionSupported = flag;
    725 }
    726 
    727 void
    728 tr_peerIoEnableLTEP( tr_peerIo  * io,
    729                      tr_bool      flag )
    730 {
    731     assert( tr_isPeerIo( io ) );
    732     assert( tr_isBool( flag ) );
    733 
    734     dbgmsg( io, "setting LTEP support flag to %d", (flag!=0) );
    735     io->extendedProtocolSupported = flag;
    736 }
    737 
    738 void
    739 tr_peerIoEnableDHT( tr_peerIo * io, tr_bool flag )
    740 {
    741     assert( tr_isPeerIo( io ) );
    742     assert( tr_isBool( flag ) );
    743 
    744     dbgmsg( io, "setting DHT support flag to %d", (flag!=0) );
    745     io->dhtSupported = flag;
    746 }
    747 
    748 /**
    749 ***
    750 **/
    751 
    752716static size_t
    753717getDesiredOutputBufferSize( const tr_peerIo * io, uint64_t now )
Note: See TracChangeset for help on using the changeset viewer.