Changeset 14 for trunk/libtransmission
- Timestamp:
- Jan 12, 2006, 6:52:15 PM (17 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/Jamfile
r3 r14 4 4 transmission.c bencode.c net.c tracker.c peer.c inout.c 5 5 metainfo.c sha1.c utils.c upload.c fdlimit.c clients.c 6 completion.c ;6 completion.c platform.c ; 7 7 8 8 Library libtransmission.a : $(LIBTRANSMISSION_SRC) ; -
trunk/libtransmission/transmission.c
r7 r14 23 23 #include "transmission.h" 24 24 25 #ifdef __cplusplus 26 extern "C" { 27 #endif 28 29 #include "platform.h" 30 25 31 /*********************************************************************** 26 32 * Local prototypes … … 68 74 h->bindPort = TR_DEFAULT_PORT; 69 75 70 snprintf( h->prefsDirectory, sizeof( h->prefsDirectory ), 71 "%s/.transmission", getenv( "HOME" ) ); 72 mkdir( h->prefsDirectory, 0755 ); 73 76 tr_init_platform( h ); 77 74 78 return h; 75 79 } … … 489 493 490 494 #ifdef SYS_BEOS 495 rename_thread(tor->thread, "torrent-tx"); 491 496 /* This is required because on BeOS, SIGINT is sent to each thread, 492 497 which kills them not nicely */ … … 576 581 return rateGeneric( tor->dates, tor->uploaded ); 577 582 } 583 584 #ifdef __cplusplus 585 } 586 #endif -
trunk/libtransmission/transmission.h
r7 r14 24 24 #define TR_TRANSMISSION_H 1 25 25 26 #ifdef __cplusplus 27 extern "C" { 28 #endif 29 26 30 #include <inttypes.h> 27 31 28 32 #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 30 39 #define TR_MAX_TORRENT_COUNT 50 31 40 … … 235 244 #endif 236 245 237 #endif 246 #ifdef __cplusplus 247 } 248 #endif 249 250 #endif
Note: See TracChangeset
for help on using the changeset viewer.