mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-08 19:22:29 +00:00
* Removed old Command classes.
* Redirects can now be made efficiently using rpc::CommandMap::create_redirect or "methods.redirect=new_key,dest_key". git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1155 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -50,7 +50,6 @@
|
||||
#include "core/download_store.h"
|
||||
#include "core/manager.h"
|
||||
#include "rak/string_manip.h"
|
||||
#include "rpc/command_slot.h"
|
||||
#include "rpc/command_variable.h"
|
||||
#include "rpc/parse_commands.h"
|
||||
#include "rpc/scgi.h"
|
||||
@@ -247,10 +246,10 @@ initialize_command_local() {
|
||||
*rpc::Command::argument(1) = "placeholder.1";
|
||||
*rpc::Command::argument(2) = "placeholder.2";
|
||||
*rpc::Command::argument(3) = "placeholder.3";
|
||||
CMD_OBJ_P("argument.0", get_generic, rpc::Command::argument(0));
|
||||
CMD_OBJ_P("argument.1", get_generic, rpc::Command::argument(1));
|
||||
CMD_OBJ_P("argument.2", get_generic, rpc::Command::argument(2));
|
||||
CMD_OBJ_P("argument.3", get_generic, rpc::Command::argument(3));
|
||||
CMD2_ANY_P("argument.0", std::tr1::bind(&rpc::Command::argument_ref, 0));
|
||||
CMD2_ANY_P("argument.1", std::tr1::bind(&rpc::Command::argument_ref, 1));
|
||||
CMD2_ANY_P("argument.2", std::tr1::bind(&rpc::Command::argument_ref, 2));
|
||||
CMD2_ANY_P("argument.3", std::tr1::bind(&rpc::Command::argument_ref, 3));
|
||||
|
||||
CMD2_ANY_LIST ("group.insert", std::tr1::bind(&group_insert, std::tr1::placeholders::_2));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user