summaryrefslogtreecommitdiff
path: root/src/RpcMethod.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-10-29 18:50:52 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-10-29 18:50:52 +0900
commit7cba24e8b2ade4e14e4181bf0a5806966178bed0 (patch)
treea84f0ac7243c923204e701ed7ecaf04c1b800c00 /src/RpcMethod.cc
parent0ba6f8c352da64db26907cbfa4ff9579700562e0 (diff)
Options for -i list is now available in aria2.changeOption.
Options for -i list, except for PREF_CHECKSUM, PREF_DIR, PREF_DRY_RUN, PREF_INDEX_OUT, PREF_LOWEST_SPEED_LIMIT, PREF_MAX_CONNECTION_PER_SERVER, PREF_METALINK_BASE_URI, PREF_OUT, PREF_PIECE_LENGTH, PREF_SELECT_FILE, PREF_SPLIT, PREF_PAUSE and PREF_PARAMETERIZED_URI, are available in aria2.changeOption if the download is waiting state, including paused downloads.
Diffstat (limited to 'src/RpcMethod.cc')
-rw-r--r--src/RpcMethod.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/RpcMethod.cc b/src/RpcMethod.cc
index d25107f9..9cacf072 100644
--- a/src/RpcMethod.cc
+++ b/src/RpcMethod.cc
@@ -137,6 +137,17 @@ void RpcMethod::gatherChangeableOption(Option* option, const Dict* optionsDict)
}
}
+void RpcMethod::gatherChangeableOptionForReserved
+(Option* option,
+ const Dict* optionsDict)
+{
+ if(optionsDict) {
+ gatherOption(optionsDict->begin(), optionsDict->end(),
+ mem_fun_sh(&OptionHandler::getChangeOptionForReserved),
+ option, optionParser_);
+ }
+}
+
void RpcMethod::gatherChangeableGlobalOption
(Option* option, const Dict* optionsDict)
{