From 087282fcf1ec3df4046074fb754f57c38f69d8ac Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Sat, 17 Dec 2016 00:17:16 +0100 Subject: Implement aria2.getDiskspaceInformation([gids]) call --- src/RpcMethodFactory.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/RpcMethodFactory.cc') 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 rpcMethodNames = { "aria2.forceShutdown", "aria2.getGlobalStat", "aria2.saveSession", + "aria2.getDiskspaceInformation", "system.multicall", "system.listMethods", "system.listNotifications", @@ -251,6 +252,10 @@ std::unique_ptr createMethod(const std::string& methodName) return make_unique(); } + if (methodName == GetDiskspaceInformationRpcMethod::getMethodName()) { + return make_unique(); + } + if (methodName == SystemMulticallRpcMethod::getMethodName()) { return make_unique(); } -- cgit