summaryrefslogtreecommitdiff
path: root/src/RpcMethodFactory.cc
diff options
context:
space:
mode:
authorNils Maier <maierman@web.de>2016-12-17 00:17:16 +0100
committerNils Maier <maierman@web.de>2016-12-17 01:59:51 +0100
commit087282fcf1ec3df4046074fb754f57c38f69d8ac (patch)
treeb76c4f8741fcdc220cc5e43c81a1ff7337daf03b /src/RpcMethodFactory.cc
parente98f3a558747a9cab208c7e6ce2900e5de5938d0 (diff)
Implement aria2.getDiskspaceInformation([gids]) calldiskspace
Diffstat (limited to 'src/RpcMethodFactory.cc')
-rw-r--r--src/RpcMethodFactory.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/RpcMethodFactory.cc b/src/RpcMethodFactory.cc
index bafbffd8..66eb5e8a 100644
--- a/src/RpcMethodFactory.cc
+++ b/src/RpcMethodFactory.cc
@@ -88,6 +88,7 @@ std::vector<std::string> rpcMethodNames = {
"aria2.forceShutdown",
"aria2.getGlobalStat",
"aria2.saveSession",
+ "aria2.getDiskspaceInformation",
"system.multicall",
"system.listMethods",
"system.listNotifications",
@@ -251,6 +252,10 @@ std::unique_ptr<RpcMethod> createMethod(const std::string& methodName)
return make_unique<SaveSessionRpcMethod>();
}
+ if (methodName == GetDiskspaceInformationRpcMethod::getMethodName()) {
+ return make_unique<GetDiskspaceInformationRpcMethod>();
+ }
+
if (methodName == SystemMulticallRpcMethod::getMethodName()) {
return make_unique<SystemMulticallRpcMethod>();
}