* Proper fault handling for bad SCGI requests.

* Cleaned up duplicate code in 'xmlrpc.cc'.

* Cleaned up 'parse_commands.h'.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@966 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-08-27 23:00:48 +00:00
parent 02b790c0bf
commit 32b74ffc48
19 changed files with 161 additions and 191 deletions
+5 -5
View File
@@ -73,8 +73,8 @@ public:
virtual bool operator () (Download* d1, Download* d2) const {
return
rpc::call_command_d_string(m_name, d1) == m_value &&
rpc::call_command_d_string(m_name, d2) != m_value;
rpc::call_command_string(m_name, rpc::make_target(d1)) == m_value &&
rpc::call_command_string(m_name, rpc::make_target(d2)) != m_value;
}
private:
@@ -88,9 +88,9 @@ public:
virtual bool operator () (Download* d1, Download* d2) const {
if (m_reverse)
return rpc::call_command_d_value(m_name, d2) < rpc::call_command_d_value(m_name, d1);
return rpc::call_command_value(m_name, rpc::make_target(d2)) < rpc::call_command_value(m_name, rpc::make_target(d1));
else
return rpc::call_command_d_value(m_name, d1) < rpc::call_command_d_value(m_name, d2);
return rpc::call_command_value(m_name, rpc::make_target(d1)) < rpc::call_command_value(m_name, rpc::make_target(d2));
}
private:
@@ -117,7 +117,7 @@ public:
m_name(name), m_value(v), m_inverse(inverse) {}
virtual bool operator () (Download* d1) const {
return (rpc::call_command_d_value(m_name, d1) == m_value) != m_inverse;
return (rpc::call_command_value(m_name, rpc::make_target(d1)) == m_value) != m_inverse;
}
private: