* 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:
rakshasa
2010-03-28 18:09:09 +00:00
parent 10f665e9c6
commit 4e4540e60f
15 changed files with 293 additions and 908 deletions
+4 -5
View File
@@ -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));
}