Changeset 14 for trunk/libtransmission


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

Update 2005-12-13

Location:
trunk/libtransmission
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/Jamfile

    r3 r14  
    44    transmission.c bencode.c net.c tracker.c peer.c inout.c
    55    metainfo.c sha1.c utils.c upload.c fdlimit.c clients.c
    6     completion.c ;
     6    completion.c platform.c ;
    77
    88Library       libtransmission.a       : $(LIBTRANSMISSION_SRC) ;
  • 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
  • trunk/libtransmission/transmission.h

    r7 r14  
    2424#define TR_TRANSMISSION_H 1
    2525
     26#ifdef __cplusplus
     27extern "C" {
     28#endif
     29
    2630#include <inttypes.h>
    2731
    2832#define SHA_DIGEST_LENGTH    20
    29 #define MAX_PATH_LENGTH      1024
     33#ifdef SYS_BEOS
     34# include <StorageDefs.h>
     35# define MAX_PATH_LENGTH B_FILE_NAME_LENGTH
     36#else
     37# define MAX_PATH_LENGTH      1024
     38#endif
    3039#define TR_MAX_TORRENT_COUNT 50
    3140
     
    235244#endif
    236245
    237 #endif
     246#ifdef __cplusplus
     247}
     248#endif
     249
     250#endif
Note: See TracChangeset for help on using the changeset viewer.