Ignore:
Timestamp:
Jan 12, 2006, 6:52:15 PM (11 years ago)
Author:
root
Message:

Update 2005-12-13

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.c

    r7 r14  
    2323#include "transmission.h"
    2424
     25#ifdef __cplusplus
     26extern "C" {
     27#endif
     28
     29#include "platform.h"
     30
    2531/***********************************************************************
    2632 * Local prototypes
     
    6874    h->bindPort = TR_DEFAULT_PORT;
    6975
    70     snprintf( h->prefsDirectory, sizeof( h->prefsDirectory ),
    71               "%s/.transmission", getenv( "HOME" ) );
    72     mkdir( h->prefsDirectory, 0755 );
    73    
     76    tr_init_platform( h );
     77
    7478    return h;
    7579}
     
    489493
    490494#ifdef SYS_BEOS
     495        rename_thread(tor->thread, "torrent-tx");
    491496    /* This is required because on BeOS, SIGINT is sent to each thread,
    492497       which kills them not nicely */
     
    576581    return rateGeneric( tor->dates, tor->uploaded );
    577582}
     583
     584#ifdef __cplusplus
     585}
     586#endif
Note: See TracChangeset for help on using the changeset viewer.