Commit Graph

2880 Commits

Author SHA1 Message Date
Tatsuhiro Tsujikawa
06377d77c9 Add changeGlobalOption, getGlobalOption, getGlobalOptions API 2013-05-17 22:56:21 +09:00
Tatsuhiro Tsujikawa
7ac096c3c0 Merge branch 'signals-again' of https://github.com/nmaier/aria2 into nmaier-signals-again 2013-05-17 21:19:42 +09:00
Nils Maier
b7ef53b13d OSX (now) needs signal.h for sigaction 2013-05-17 01:48:53 +02:00
Nils Maier
51ddcaf5b1 AppleTLS: Properly support Snow Leopard (10.6)
Tested on 10.6.8 + XCode 4.2 (llvm-gcc-4.2, clang)
2013-05-17 01:42:01 +02:00
Tatsuhiro Tsujikawa
c7c4d46672 Add changeOption and DownloadHandle::getOption API
In aria2c.rst, define section label for "Input File" section so that
it can be referenced from other document.
2013-05-16 23:09:19 +09:00
Tatsuhiro Tsujikawa
8e8fb9ee36 Add addTorrent API 2013-05-15 23:29:28 +09:00
Tatsuhiro Tsujikawa
a8ef703b89 Update doc 2013-05-15 22:58:55 +09:00
Tatsuhiro Tsujikawa
a4a4a10490 Remove NULL check for pref because pref is always non NULL 2013-05-15 22:51:35 +09:00
Tatsuhiro Tsujikawa
fc0982587b Release elements in routineCommands_ on destruction 2013-05-15 22:50:51 +09:00
Tatsuhiro Tsujikawa
cef6db17ba Add changePosition API 2013-05-15 00:50:55 +09:00
Tatsuhiro Tsujikawa
4f5d26a0c7 Use BtFileMode for TorrentAttribute::mode 2013-05-15 00:09:51 +09:00
Tatsuhiro Tsujikawa
5dcc2b7842 Add DownloadHandle::getBtMetaInfo() API 2013-05-14 23:00:21 +09:00
Tatsuhiro Tsujikawa
b0b5e0df38 Enable multicast loopback in Bt LPD 2013-05-14 21:45:27 +09:00
Tatsuhiro Tsujikawa
e350df2d75 Add download event callback API and its example 2013-05-11 19:40:24 +09:00
Tatsuhiro Tsujikawa
1c571f196a Refactor Notifier interface to accept DownloadEventListener interface
WebSocketSessionMan now implements DownloadEventListener and is added
to Notifier. It becomes member variable of DownloadEngine.  The event
constant for download event is defined in aria2.h so that we can add
event callback API later.
2013-05-11 18:50:03 +09:00
Tatsuhiro Tsujikawa
9f4f888e39 Make DownloadHandle::getNumPieces() return int 2013-05-10 21:52:46 +09:00
Tatsuhiro Tsujikawa
1a953d5f93 Add DownloadHandle::getInfohash() and getPieceLength() 2013-05-10 21:51:41 +09:00
Tatsuhiro Tsujikawa
1b6827b060 Revert d50021d045
It is safe to use prealloc for default, because of legacy fs (e.g.,
vfat) usage in Android.
2013-05-10 21:14:03 +09:00
Tatsuhiro Tsujikawa
c056f747c6 Install libaria2.pc only when libaria2 is enabled 2013-05-10 21:12:30 +09:00
Tatsuhiro Tsujikawa
233501f768 Enable TLS1.1 with gnutls build 2013-05-10 00:49:06 +09:00
Tatsuhiro Tsujikawa
fb31e44d60 Change error code -1 to just negative error code 2013-05-10 00:08:36 +09:00
Tatsuhiro Tsujikawa
16635f94ea Make DownloadHandle class 2013-05-10 00:00:36 +09:00
Tatsuhiro Tsujikawa
ca6b46db84 Generate libaria2 API doc from aria2.h 2013-05-09 23:49:30 +09:00
Tatsuhiro Tsujikawa
8940d2aafd Change the way to receive resulting gids in addUri, addMetalink 2013-05-09 21:28:24 +09:00
Tatsuhiro Tsujikawa
b733431ac4 Add DownloadHandle::getNumFiles and getFile API 2013-05-09 00:48:41 +09:00
Tatsuhiro Tsujikawa
d50021d045 Use trunc as default value for --file-allocation on Android build 2013-05-06 19:31:40 +09:00
Tatsuhiro Tsujikawa
4c139eb039 Add TAG_DEPRECATED in DeprecatedOptionHandler ctor 2013-05-06 19:24:13 +09:00
Tatsuhiro Tsujikawa
512f87f4ff Fix compiler warning 2013-05-06 19:23:17 +09:00
Tatsuhiro Tsujikawa
5bc5665c6a Support off64_t for Android build
Android NDK R8e does not provide ftruncate64, but bionic has the
assembler code to access kernel function. We borrowed those
ftruncate64.S files from android source code repository.  It turns out
that x86 asm.h in NDK R8e is also broken, so latest asm.h was also
borrowed.
2013-05-06 19:12:17 +09:00
Tatsuhiro Tsujikawa
3a4acead2d Reset global::globalHaltRequested to 0 in MultiUrlRequestInfo::prepare() 2013-05-05 17:47:14 +09:00
Tatsuhiro Tsujikawa
1b920e4011 Add --enable-libaria2 configure option
By default, libaria2 feature is disabled. Use --enable-libaria2
to enable it. libaria2 static build is also disabled by default.
Use --enable-static to enable it.
2013-05-05 00:37:11 +09:00
Tatsuhiro Tsujikawa
2bf2dba544 Merge branch 'libaria2' 2013-05-05 00:13:17 +09:00
Tatsuhiro Tsujikawa
22b3e0a4ae Fix PREF_QUIET is set to A2_V_TRUE even if standalone is true 2013-05-05 00:05:41 +09:00
Tatsuhiro Tsujikawa
ebfc5f55e5 Add SessionConfig to store per Session config
sessionConfigSetKeepRunning() was removed and SessionConfig has
keepRunning member instead. Signal handlers are now all prepared in
MultiUrlRequestGroup object. Setting SessionConfig.useSignalHandler to
false will avoid signal handler setup.
2013-05-04 23:56:19 +09:00
Tatsuhiro Tsujikawa
4410f0e56c Treat response is completed if EOF is received before streamFilter completes 2013-05-04 22:44:08 +09:00
Tatsuhiro Tsujikawa
7d55341fde Fix event polling not working with no downloads but keepRunning_ is true 2013-05-02 12:44:55 +09:00
Tatsuhiro Tsujikawa
98b132b4d1 Receive reference, not copy 2013-05-02 11:47:29 +09:00
Tatsuhiro Tsujikawa
d07b3ff8d9 Suppress console output for none-standalone mode 2013-05-02 11:30:42 +09:00
Tatsuhiro Tsujikawa
315c05ea3c Suppress console log output for library use, enclose Platform in try-catch
Still need to suppress global::cerr and global::cout
2013-05-02 10:25:28 +09:00
Tatsuhiro Tsujikawa
f5d5d8fa8e Fix empty unknown option name in OptionParser::parse 2013-05-02 10:19:30 +09:00
Tatsuhiro Tsujikawa
43895155e0 Don't enter daemon mode if standalone is false 2013-05-02 10:08:47 +09:00
Tatsuhiro Tsujikawa
aee621b3d4 Don't exit on error in option_processing
Still it exits when -v or -h is given. They are now guarded by
standalone variable and only do so when it is true.
2013-05-02 10:03:00 +09:00
Tatsuhiro Tsujikawa
e5cccd335c Add addMetalink API function 2013-05-02 09:40:27 +09:00
Tatsuhiro Tsujikawa
24a6896bf4 Add sessionConfigSetKeepRunning and shutdown API function
Setting sessionConfigSetKeepRunning to true makes aria2 core keep
running even if there is no download to perform, just like --enable-rpc
option.
2013-05-01 21:28:04 +09:00
Tatsuhiro Tsujikawa
a456d83de0 Update API doc 2013-05-01 17:15:43 +09:00
Tatsuhiro Tsujikawa
bbc8866cfb Add removeDownload, pauseDownload and unpauseDownload API function 2013-05-01 16:58:34 +09:00
Tatsuhiro Tsujikawa
4c50544f1a Rename DOWNLOAD_STATUS as DownloadStatus 2013-05-01 13:39:54 +09:00
Tatsuhiro Tsujikawa
2109ba23a8 Add DownloadHandle::getFiles() API function 2013-05-01 13:38:30 +09:00
Tatsuhiro Tsujikawa
5e64d4c9a9 Expose struct DownloadHandle interface to public API directly 2013-05-01 11:58:25 +09:00
Tatsuhiro Tsujikawa
8f659f49ec Rename gidToString as gidToHex, add hexToGid and isNull 2013-04-30 22:51:05 +09:00