mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-13 05:32:31 +00:00
* Removed the FastCGI code.
* Cleaned up XmlRpc and fixed some compile errors. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@930 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
#include <string>
|
||||
|
||||
#include "command_map.h"
|
||||
#include "xmlrpc.h"
|
||||
|
||||
namespace core {
|
||||
class Download;
|
||||
@@ -47,7 +48,9 @@ namespace core {
|
||||
|
||||
namespace rpc {
|
||||
|
||||
// class CommandMap;
|
||||
// Move to another file?
|
||||
extern CommandMap commands;
|
||||
extern XmlRpc xmlrpc;
|
||||
|
||||
const char* parse_command_name(const char* first, const char* last, std::string* dest);
|
||||
|
||||
@@ -69,9 +72,6 @@ parse_command_d_single_std(core::Download* download, const std::string& cmd) {
|
||||
parse_command_d_single(download, cmd.c_str(), cmd.c_str() + cmd.size());
|
||||
}
|
||||
|
||||
// Move to anoher file?
|
||||
extern CommandMap commands;
|
||||
|
||||
inline torrent::Object call_command(const char* key, const torrent::Object& obj) { return commands.call_command(key, obj); }
|
||||
inline torrent::Object call_command_void(const char* key) { return commands.call_command(key, torrent::Object()); }
|
||||
inline std::string call_command_string(const char* key) { return commands.call_command(key, torrent::Object()).as_string(); }
|
||||
|
||||
Reference in New Issue
Block a user