From d78b2721a5aed3500d4960547be3022945692ece Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 20 Dec 2009 14:48:28 +0000 Subject: [PATCH] 2009-12-20 Tatsuhiro Tsujikawa Added getOption and getGlobalOption to aria2rpc. * doc/xmlrpc/aria2rpc --- ChangeLog | 5 +++++ doc/xmlrpc/aria2rpc | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6c9a8a1c5..a043a0912 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-12-20 Tatsuhiro Tsujikawa + + Added getOption and getGlobalOption to aria2rpc. + * doc/xmlrpc/aria2rpc + 2009-12-20 Tatsuhiro Tsujikawa Documented getOption and getGlobalOption XML-RPC method in man diff --git a/doc/xmlrpc/aria2rpc b/doc/xmlrpc/aria2rpc index 7402ee3fa..4d6a37475 100755 --- a/doc/xmlrpc/aria2rpc +++ b/doc/xmlrpc/aria2rpc @@ -180,6 +180,8 @@ Usage: #{program_name} addUri URI... [options] #{program_name} tellStatus GID [options] #{program_name} tellActive [options] #{program_name} tellWaiting [options] + #{program_name} getOption GID [options] + #{program_name} getGlobalOption [options] #{program_name} getFiles GID [options] #{program_name} getUris GID [options] #{program_name} getPeers GID [options] @@ -241,6 +243,10 @@ elsif command == "tellActive" then result=client.call("aria2."+command) elsif command == "tellWaiting" then result=client.call("aria2."+command, resources[0].to_i(), resources[1].to_i()) +elsif command == "getOption" then + result=client.call("aria2."+command, resources[0]) +elsif command == "getGlobalOption" then + result=client.call("aria2."+command) elsif command == "remove" then result=client.call("aria2."+command, resources[0]) elsif command == "getFiles" then