diff options
Diffstat (limited to 'src/RpcMethodFactory.cc')
| -rw-r--r-- | src/RpcMethodFactory.cc | 5 |
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>(); } |
