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
01d2cb197c
Fix doc
2013-05-10 00:06:50 +09:00
Tatsuhiro Tsujikawa
742f8cc822
Document theme change
...
Need to change ru and pt as well
2013-05-10 00:01:19 +09:00
Tatsuhiro Tsujikawa
16635f94ea
Make DownloadHandle class
2013-05-10 00:00:36 +09:00
Tatsuhiro Tsujikawa
370584a12b
Update doc
2013-05-09 23:59:50 +09:00
Tatsuhiro Tsujikawa
f2c2f08585
Support @class, fix execution failure
2013-05-09 23:59:22 +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
e4996e563b
Use getFile(index) API
2013-05-09 00:49:16 +09:00
Tatsuhiro Tsujikawa
b733431ac4
Add DownloadHandle::getNumFiles and getFile API
2013-05-09 00:48:41 +09:00
Tatsuhiro Tsujikawa
1f38699d32
Add libaria2 multi-threaded GUI examle program using wx
2013-05-09 00:24:45 +09:00
Tatsuhiro Tsujikawa
81359a7065
Add libaria2 examples
2013-05-07 00:46:29 +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
774e1b8a10
Check zlib availability usin AC_CHECK_LIB
...
This is workaround for zlib 1.2.3 which does not come with pkg-config
file.
2013-05-05 17:31:41 +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
b886ade311
Merge branch 'mallocs' of https://github.com/nmaier/aria2 into nmaier-mallocs
2013-05-01 11:32:04 +09:00
Nils Maier
cc8b006a8e
mallocs: Remove bogus pkg-config _LDFLAGS lines
2013-04-30 21:55:13 +02:00
Tatsuhiro Tsujikawa
8f659f49ec
Rename gidToString as gidToHex, add hexToGid and isNull
2013-04-30 22:51:05 +09:00
Tatsuhiro Tsujikawa
1df4adefb5
Add accessors for DownloadHandle
...
Added downloadGetBitfield, downloadGetNumPieces,
downloadGetConnections, downloadGetErrorCode,
downloadGetFollowedBy, downloadGetBelongsTo and
downloadGetDir functions.
2013-04-30 22:42:23 +09:00
Tatsuhiro Tsujikawa
d1252dcc5f
Move aria2api.{cc,h} to libaria2_la_SOURCES
2013-04-30 21:47:05 +09:00
Tatsuhiro Tsujikawa
db2e22132d
Merge branch 'libuv-eventpoll' of https://github.com/nmaier/aria2 into nmaier-libuv-eventpoll
2013-04-30 14:53:42 +09:00
Tatsuhiro Tsujikawa
549dd5b2a7
uitos: Fix off-by-one error bug
2013-04-29 23:53:23 +09:00
Nils Maier
a1a3e21f73
LibUV: Revert unrelated change
2013-04-28 21:54:35 +02:00
Nils Maier
e700ebd3e9
LibUV: Reorder event poll preference
...
*nix will keep epoll/kqueue/port as the default (when available), while
Windows, lacking all of these, will default to libuv (when available)
2013-04-28 21:44:06 +02:00
Nils Maier
d2c1fbd792
Add configure support for linking tcmalloc_minimal and/or jemalloc
...
Both tcmalloc_minimal and jemalloc outperform the native malloc
implemention on Windows (MSVCRT) in terms of committed memory
consumption (~-30%) and performance (e.g. far less page faults, ~-60%),
depending, of course, on the actual workload.
The longer the download queue, the bigger the impact ;)
On *nix the picture is a little different... tcmalloc usually still
outperforms the native malloc implementation, but not that significantly
than on Windows. jemalloc however is only marginally better than recent
native Linux implementations, while it is already used by some BSD as the
native allocator.
tcmalloc is part of gperftools and very mature and tested by now. It
doesn't work on OSX in the default configuration, however.
http://code.google.com/p/gperftools/
jemalloc is the default allocator at least on FreeBSD and NetBSD and
used in Firefox.
http://www.canonware.com/jemalloc/index.html
2013-04-28 21:35:22 +02:00
Nils Maier
6b7a51d5e0
Close GZipFiles in the d'tor
2013-04-28 21:32:51 +02:00
Tatsuhiro Tsujikawa
28849e3ddf
Add gidToString and getActiveDownload API functions
2013-04-27 01:26:59 +09:00