From a8f57aa85f80a22c442858123a39297b473c5983 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 14 Apr 2010 12:55:26 +0000 Subject: [PATCH] 2010-04-14 Tatsuhiro Tsujikawa Added aria2.pause, aria2.forcePause, aria2.pauseAll, aria2.forcePauseAll, aria2.unpause, aria2.unpauseAll XML-RPC method to aria2rpc * doc/xmlrpc/aria2rpc --- ChangeLog | 7 +++++++ doc/xmlrpc/aria2rpc | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/ChangeLog b/ChangeLog index b23f0c84..e57cb4dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-04-14 Tatsuhiro Tsujikawa + + Added aria2.pause, aria2.forcePause, aria2.pauseAll, + aria2.forcePauseAll, aria2.unpause, aria2.unpauseAll XML-RPC + method to aria2rpc + * doc/xmlrpc/aria2rpc + 2010-04-14 Tatsuhiro Tsujikawa Use elapsed time between two mach_absolute_time() calls. diff --git a/doc/xmlrpc/aria2rpc b/doc/xmlrpc/aria2rpc index 113a6076..514197f7 100755 --- a/doc/xmlrpc/aria2rpc +++ b/doc/xmlrpc/aria2rpc @@ -216,6 +216,12 @@ Usage: #{program_name} addUri URI... [options] #{program_name} addTorrent /path/to/torrent_file URI... [options] #{program_name} addMetalink /path/to/metalink_file [options] #{program_name} remove GID [options] + #{program_name} pause GID [options] + #{program_name} pauseAll [options] + #{program_name} forcePause GID [options] + #{program_name} forcePauseAll [options] + #{program_name} unpause GID [options] + #{program_name} unpauseAll [options] #{program_name} changePosition GID pos how [options] #{program_name} tellStatus GID [options] #{program_name} tellActive [options] @@ -293,6 +299,18 @@ elsif command == "getOption" then result=client.call("aria2."+command, resources[0]) elsif command == "getGlobalOption" then result=client.call("aria2."+command) +elsif command == "pause" then + result=client.call("aria2."+command, resources[0]) +elsif command == "pauseAll" then + result=client.call("aria2."+command) +elsif command == "forcePause" then + result=client.call("aria2."+command, resources[0]) +elsif command == "forcePauseAll" then + result=client.call("aria2."+command) +elsif command == "unpause" then + result=client.call("aria2."+command, resources[0]) +elsif command == "unpauseAll" then + result=client.call("aria2."+command) elsif command == "remove" then result=client.call("aria2."+command, resources[0]) elsif command == "changePosition" then