diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-04-25 21:46:31 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-04-25 21:46:31 +0900 |
| commit | 90abec8a362d6224bfff76d12fc9365fac36ddaa (patch) | |
| tree | 115a8248adda60f01004bdae167571c3f95d3806 /src/DownloadEngine.h | |
| parent | bbb978948d87790c6dfb78eaca1d47d45101443d (diff) | |
Move initialization code in aria2::main to struct Context
Diffstat (limited to 'src/DownloadEngine.h')
| -rw-r--r-- | src/DownloadEngine.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/DownloadEngine.h b/src/DownloadEngine.h index d949bff6..f382a6c1 100644 --- a/src/DownloadEngine.h +++ b/src/DownloadEngine.h @@ -167,7 +167,11 @@ public: ~DownloadEngine(); - void run(); + // If oneshot is true, this function returns after one event polling + // and performing action for them. This function returns 1 when + // oneshot is true and there are still downloads to be + // processed. Otherwise, returns 0. + int run(bool oneshot=false); void cleanQueue(); |
