Changeset 11962


Ignore:
Timestamp:
Feb 18, 2011, 1:18:51 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) add stubs for UTP_Drained() and UTP_Write() to remove a few #ifdefs from peer-io.c

Location:
trunk/libtransmission
Files:
2 edited

Legend:

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

    r11960 r11962  
    11451145    if(( howmuch = tr_bandwidthClamp( &io->bandwidth, TR_DOWN, howmuch )))
    11461146    {
    1147 #ifdef WITH_UTP
    11481147        if( io->utp_socket != NULL ) /* utp peer connection */
    11491148        {
     
    11551154        }
    11561155        else /* tcp peer connection */
    1157 #endif
    11581156        {
    11591157            int e;
     
    11961194    if(( howmuch = tr_bandwidthClamp( &io->bandwidth, TR_UP, howmuch )))
    11971195    {
    1198 #ifdef WITH_UTP
    11991196        if( io->utp_socket != NULL ) /* utp peer connection */
    12001197        {
     
    12041201        }
    12051202        else
    1206 #endif
    12071203        {
    12081204            int e;
  • trunk/libtransmission/tr-utp.c

    r11961 r11962  
    4848
    4949void
    50 UTP_Close(struct UTPSocket * socket )
     50UTP_Close(struct UTPSocket * socket)
    5151{
    5252    tr_nerr( MY_NAME, "UTP_Close(%p) was called.", socket );
    5353    dbgmsg( "UTP_Close(%p) was called.", socket );
    5454    assert( 0 ); /* FIXME: this is too much for the long term, but probably needed in the short term */
     55}
     56
     57void
     58UTP_RBDrained(struct UTPSocket *socket)
     59{
     60    tr_nerr( MY_NAME, "UTP_RBDrained(%p) was called.", socket );
     61    dbgmsg( "UTP_RBDrained(%p) was called.", socket );
     62    assert( 0 ); /* FIXME: this is too much for the long term, but probably needed in the short term */
     63}
     64
     65bool
     66UTP_Write(struct UTPSocket *socket, size_t count)
     67{
     68    tr_nerr( MY_NAME, "UTP_RBDrained(%p, %zu) was called.", socket, count );
     69    dbgmsg( "UTP_RBDrained(%p, %zu) was called.", socket, count );
     70    assert( 0 ); /* FIXME: this is too much for the long term, but probably needed in the short term */
     71    return FALSE;
    5572}
    5673
Note: See TracChangeset for help on using the changeset viewer.