Commit Graph

180 Commits

Author SHA1 Message Date
Charles Kerr 2ea9f78eff (trunk libT) tweak MAX_PATH_LENGTH a little for better portability -- defer to limits.h's definition when present 2010-05-06 15:07:18 +00:00
Mitchell Livingston d1229a263c #3072 Make Transmission look for the web ui folder in the Application Support folder first 2010-03-24 23:41:08 +00:00
Charles Kerr 1357a75d40 (trunk libT) #2911 "requirement of javascript/transmission.js for webinterface unnecessary" -- implemented in trunk for 2.00 2010-03-19 18:48:37 +00:00
Charles Kerr 0faaaeaa9a (trunk libT) #2756 "32 byte leak in tr_threadNew()" -- fixed for 1.81 2010-01-21 03:14:46 +00:00
Charles Kerr 9eb07e9b16 (trunk) No code changes here... filling in some of the blanks in the "peers" and "utils" doxygen groups' documentation. 2010-01-19 19:37:00 +00:00
Charles Kerr 5c26afdb52 happy new year! 2010-01-04 21:00:47 +00:00
Charles Kerr 78ead8c3dd (trunk) update the copyright notices 2009-12-05 02:19:24 +00:00
Charles Kerr 61e95595b8 (trunk) move tr_lockfile from libtransmission/ to gtk/, since the gtk client is the only one who uses it anymore 2009-08-14 12:53:08 +00:00
Charles Kerr cb79214854 (trunk) remove trailing spaces 2009-08-10 20:04:08 +00:00
Eric Petit bc3ffac45b Set some sensible default folders for Haiku 2009-07-09 18:18:14 +00:00
Charles Kerr 76f7e59a8c (trunk libT) tr_getDefaultDownloadDir(): always honor $XDG_CONFIG_HOME/user-dirs.dirs if it exists. 2009-04-06 16:10:37 +00:00
Charles Kerr 822a192758 (trunk libT) fix Solaris build error reported by wereHamster 2009-04-05 13:56:41 +00:00
Charles Kerr 836330d834 (trunk libT) fix xdg oops 2009-04-05 13:41:38 +00:00
Charles Kerr fa7f320f5b (trunk libT) #1957: tr_getDownloadDir() should honor XDG 2009-04-05 13:33:32 +00:00
Mitchell Livingston 7400adb70d make the ratio that is checked for stop ratio match the displayed ratio 2009-03-01 14:01:49 +00:00
Mitchell Livingston fb02e9d437 #1710 the daemon will use the Application Support folder on Mac 2009-02-28 21:45:16 +00:00
Charles Kerr 2f6b56671f (trunk libT) win32 portability patch from Alexey 2009-01-11 17:02:04 +00:00
Charles Kerr fe816d8135 (trunk) update the GPL code's copyright dates 2009-01-10 23:09:07 +00:00
Charles Kerr dfcc9173e5 (trunk libT) #include "session.h" cleanup from wereHamster 2008-12-23 17:27:15 +00:00
Charles Kerr 07f0efe8e1 maybe make hudson-t's trunk linux builds happy 2008-12-16 01:11:54 +00:00
Charles Kerr 48c7c65f1b (trunk libT) fix build error reported by KyleK and hudson-t 2008-12-16 00:57:24 +00:00
Charles Kerr 9594112d27 updated email address 2008-12-16 00:20:44 +00:00
Charles Kerr 4e33fd5467 try to make hudson-t happy 2008-12-15 20:26:26 +00:00
Charles Kerr 788b397ecc (trunk libT) more semantic cleanup: tr_handle->tr_session, int->tr_bool, int->tr_port 2008-12-14 11:21:11 +00:00
Charles Kerr d52631cb67 (trunk libT) #1595: Always search in PACKAGE_DATA_DIR when serving Web files 2008-12-14 01:19:50 +00:00
Charles Kerr 6b0d98a695 (trunk) #1559: Simplify tr_sessionInitFull 2008-12-13 23:17:36 +00:00
Mitchell Livingston 31482813b9 BeOS and Amiga support is, at least for now, a lost cause and hasn't worked for long over a year - removing from the source (if you for whatever unknown reason still need this, get it through SVN) 2008-12-02 03:57:01 +00:00
Charles Kerr f8a7c4b347 #1406: need tr_getDefaultDownloadDir() for consistency between apps 2008-11-15 17:39:54 +00:00
Charles Kerr dc761dbc81 (libT) fix bug in getting win32 home directory 2008-11-02 15:58:30 +00:00
Charles Kerr e04ea4062d (rpc) fix r6861 regression: if libt can't find the Clutch files, give a helpful 404 message for end-users and binary packagers about how to use CLUTCH_HOME and PACKAGE_DATA_DIR. 2008-10-30 14:01:52 +00:00
Charles Kerr 7ec84486ee (libT) more win32 portability fixes from Spry 2008-10-20 19:34:19 +00:00
Charles Kerr 67282cb794 further win32 portability fixes from Spry 2008-10-19 17:43:04 +00:00
Charles Kerr e4b1d5d726 mmap portability changes by Spry 2008-10-14 17:30:07 +00:00
Charles Kerr e8b4465a00 fix another oops from yesterday's tr_buildPath() reworking 2008-10-14 17:27:59 +00:00
Charles Kerr e3a5524189 have tr_buildPath() allocate memory from the heap rather than using an input buffer 2008-10-14 03:03:29 +00:00
Charles Kerr b824c704b7 first batch of portability changes based on spry's winport:
(1) added tr_getcwd(), a simple portability wrapper for getcwd()
(2) cli: show the help page if no command-line arguments are provided
(3) daemon: use tr_wait() intead of sleep()
(4) daemon: SIGQUIT, SIGPIPE, SIGHUP aren't defined on windows
(5) libtransmission: a couple of small cleanups to bencode.c, list.c, web.c
(6) libtransmission: win32 portability fixes to platform.c
2008-10-13 22:26:02 +00:00
Charles Kerr 8ced51a9e4 (rpc) if libt can't find the Clutch files, give a helpful 404 message for end-users and binary packagers about how to use CLUTCH_HOME and PACKAGE_DATA_DIR. 2008-10-07 01:25:29 +00:00
Charles Kerr cc89872dd4 run libT, cli, daemon, gtk through the source-code formatter "uncrustify" as promised/threatened 2008-09-23 19:11:04 +00:00
Mukund Sivaraman 72b8c7397c (win32) Replace missing symbols with values 2008-09-05 14:32:35 +00:00
Mukund Sivaraman c149fc1d27 (win32) Add getpagesize() and getregionsize() implementations 2008-09-05 14:32:32 +00:00
Mukund Sivaraman 07101de87e (win32) Fix types and alignment in interlocked exchange 2008-09-05 14:32:28 +00:00
Mukund Sivaraman 68a6c95d1c (win32) Add mmap implementation 2008-09-05 14:31:52 +00:00
Mitchell Livingston fa8ffca078 #1210 on Mac, the web ui should now work when Transmission's path contains a space 2008-08-22 23:55:33 +00:00
Mukund Sivaraman 317281f87c Don't show an error when transmission is run twice
Instead, present the main window. This commit also auto-generates
the dbus bindings.
2008-08-17 12:39:26 +00:00
Mukund Sivaraman b6791332cd Respect non-standard install paths for web interface files 2008-08-14 10:35:11 +00:00
Charles Kerr fb6db8d5ef readability tweak: remove thread names. (muks) 2008-08-12 14:03:03 +00:00
Charles Kerr 647dc88f21 (libT) safer environmental variable handling (muks) 2008-08-11 18:33:59 +00:00
Charles Kerr d6ede8d09e (libT) make the licensing consistent across all the files which only contain my code 2008-07-22 23:28:28 +00:00
Mitchell Livingston dc1a870e7f eliminate 2 tiny memory leaks from the last commit 2008-07-18 04:57:38 +00:00
Mitchell Livingston f49b471454 the mac app now includes and works with the web ui 2008-07-18 04:54:11 +00:00
Charles Kerr 70a405f1a0 (gtk) add "Launch Clutch" button to the web tab in the preferences dialog. that way users won't have to dig through documentation to find the "http://localhost:port/transmission/clutch" URL. 2008-07-16 02:31:08 +00:00
Charles Kerr 2f239319b0 add a portability wrapper ``tr_snprintf()'' around snprintf() 2008-07-15 17:16:57 +00:00
Charles Kerr 4813647346 #1084: Make `web' and `clutch' synonymous in the backend 2008-07-14 16:00:20 +00:00
Charles Kerr d5335b710b Update NEWS file to say the Clutch rewrite's been folded into Transmission. 2008-07-11 17:09:53 +00:00
Charles Kerr 87ff06144a don't break the mac build 2008-07-11 04:19:23 +00:00
Charles Kerr a18f55d217 forgot an #include <sys/stat.h> 2008-07-11 04:11:22 +00:00
Charles Kerr b37a2cfa23 (1) add clutch to the tarball.
(2) on autoconf-based installs, install the clutch files in $(datadir)/transmission/web
(3) new function tr_getClutchDir().  Default implementation follows the XDG spec.
2008-07-11 04:07:14 +00:00
Charles Kerr 2c79888a93 RPC/IPC redesign 2008-05-18 16:44:30 +00:00
Mitchell Livingston 3a609ecc87 eliminate warning about unused variable 2008-04-23 13:26:30 +00:00
Charles Kerr b483b30889 minor code cleanup: remove dead code, const-correctness, etc 2008-04-18 23:17:40 +00:00
Charles Kerr ab2b3a957d #886: libtransmission fails to compile on win32 2008-04-18 15:33:24 +00:00
Charles Kerr 101307ddff fix a couple more minor leaks 2008-04-17 19:54:22 +00:00
Charles Kerr 1f95e1d450 tweak an info message based on BMW's suggestion 2008-04-10 02:53:03 +00:00
Mitchell Livingston fad4e528fe store mac support files in the right location 2008-04-05 20:27:13 +00:00
Charles Kerr b71a2985b3 #684: Use XDG basedir spec for configuration and cache files in $HOME 2008-04-05 20:12:11 +00:00
Charles Kerr eb3ca08961 fix r5164 thread timing issue reported by pea_ 2008-02-29 01:58:46 +00:00
Charles Kerr d870c12f40 add win32/posix wrapper function tr_lockfile() to libT and use it in daemon/gtk. 2008-02-28 19:06:23 +00:00
Charles Kerr 5f3efe434b better win32 thread support 2008-02-28 16:40:31 +00:00
Charles Kerr cfe068876e remove unnecessary #includes 2008-02-19 18:39:49 +00:00
Charles Kerr deaeb24cb5 cleanup #includes for errno & strerror 2008-02-19 04:16:04 +00:00
Charles Kerr ce6c33b7bf set copyright info to 2008 2008-01-01 17:20:20 +00:00
Mitchell Livingston 911a6ce32e remove unused variables 2007-12-20 01:15:13 +00:00
Charles Kerr 371287136a fix build error reported by berkut in the forums 2007-12-17 02:21:06 +00:00
Charles Kerr 36391e02c1 add support for TRANSMISSION_HOME environment variable so I can have multiple copies of Transmission running concurrently in different directories. 2007-12-15 22:22:30 +00:00
Charles Kerr 33f284ead1 let the other config directories that we create also respect umask 2007-12-09 15:22:01 +00:00
Charles Kerr 73ee11f233 Use libnatpmp for port mapping. rewrite the upnp/natpmp manager.
NOTE: this will break the xpjets build until SoftwareElves or a volunteer patches the xcode project file to make a libnatpmp library just like was done for libminiupnp.
2007-12-08 19:34:15 +00:00
Charles Kerr d3d1263a84 use fizz' suggestion on from ticket #534 on how to make platform.c more portable wrt header include order 2007-12-07 19:25:54 +00:00
Charles Kerr c68af92039 fix very annoying recursive mutex + pthread cond bug reported by setatg, Waldorf, and many others 2007-12-03 04:06:45 +00:00
Charles Kerr 7b068ed926 more mutex work 2007-12-02 18:20:37 +00:00
Charles Kerr 5e88ab235b possibly get the pthread changes compiling for old versions of Linux 2007-12-02 17:15:52 +00:00
Charles Kerr b14449fe80 possible fix for the crash reported by sedatg in ticket #519 2007-12-02 16:35:44 +00:00
Charles Kerr 398bc04bcf housekeeping. revert r3984 at tiennou's request 2007-11-27 15:39:59 +00:00
Charles Kerr 07f2e6365a move tr_getDefaultRoute() to natpmp.c because it's the only code that uses it 2007-11-26 20:21:52 +00:00
Charles Kerr d2a5dd50d3 remove dead code 2007-11-16 20:38:51 +00:00
Charles Kerr fd430fde90 undoing the r3773-r3774 experiment. 2007-11-09 20:07:52 +00:00
Charles Kerr 67b719c2de on Darwin, use NSCParameterAssert() instead of assert(). 2007-11-09 19:50:40 +00:00
Charles Kerr 8c0e2434f5 fix OpenBSD build error. 2007-10-25 13:59:46 +00:00
Charles Kerr 5c11c58113 simplify libT locks now that it's (more-or-less) single-threaded. fix deadlocks. make tr_locks nestable. 2007-10-01 15:17:15 +00:00
Charles Kerr c28a94d04c fix a couple of memory corruption errors while trying to track down tiennou's report on peer-msgs.c:pulse() -> inout.c:163 assertion failure. 2007-09-28 14:27:56 +00:00
Mitchell Livingston 76da1185ca merge encryption branch to trunk (xcode project is still out of date) 2007-09-20 16:32:01 +00:00
Charles Kerr b1c9a9bd97 (trunk) fix some of the crash-on-shutdown issues. 2007-09-05 23:01:56 +00:00
Charles Kerr 027fa13c5b fix win32 build. (#304, lubomir.marinov) 2007-08-19 02:10:18 +00:00
Josh Elsasser 2ead51f79d Use __BEOS__ to test for beos instead of relying on the build to set SYS_BEOS.
Add missing headers and other miscellaneous fixes for beos.
2007-08-04 01:17:39 +00:00
Charles Kerr c51007f916 BeOS portability fixes from ModeenF 2007-08-03 16:28:32 +00:00
Charles Kerr ef2fc4fdcf More win32 portability fixes. we now talk to tracker & peers; hash checks work, downloads seem to work. w00t 2007-08-02 23:33:40 +00:00
Charles Kerr 1fd5f90a77 win32 cleanly compiles and starts now. (still doesn't atually *work*, but we're getting closer...) 2007-08-02 19:43:29 +00:00
Charles Kerr 25c1dff6d8 fix tyop 2007-08-01 23:22:01 +00:00
Charles Kerr 26caf4f5dd More Win32 portability changes 2007-08-01 00:40:49 +00:00
Charles Kerr 497856e6e4 add Win32 implementations of tr_thread_t, tr_mutex_t, and tr_cond_t 2007-07-31 19:56:40 +00:00
Charles Kerr ba3dc008fc get the socket/net code working on win32 too 2007-07-31 16:55:47 +00:00