summaryrefslogtreecommitdiff
path: root/src/RpcMethodFactory.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2014-02-19 22:02:50 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2014-02-19 22:02:50 +0900
commita8319a8b7893601f88fb03c896ce1163211815e7 (patch)
tree3097c41bbab46b7c2d7cabec1199359dfa4abff4 /src/RpcMethodFactory.cc
parent1a24020e6371f6ee43b75bfb8372faf57d8487b9 (diff)
Add aria2.saveSession RPC method
This method saves the current session to a file specified by --save-session option. This method returns "OK" if it succeeds.
Diffstat (limited to 'src/RpcMethodFactory.cc')
-rw-r--r--src/RpcMethodFactory.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/RpcMethodFactory.cc b/src/RpcMethodFactory.cc
index 8813a17b..7cc919de 100644
--- a/src/RpcMethodFactory.cc
+++ b/src/RpcMethodFactory.cc
@@ -126,6 +126,8 @@ createMethod(const std::string& methodName)
return make_unique<ForceShutdownRpcMethod>();
} else if(methodName == GetGlobalStatRpcMethod::getMethodName()) {
return make_unique<GetGlobalStatRpcMethod>();
+ } else if(methodName == SaveSessionRpcMethod::getMethodName()) {
+ return make_unique<SaveSessionRpcMethod>();
} else if(methodName == SystemMulticallRpcMethod::getMethodName()) {
return make_unique<SystemMulticallRpcMethod>();
} else {