mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-11 12:42:31 +00:00
* Fixed xmlrpc so it registers all the commands.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@904 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+11
-1
@@ -150,9 +150,19 @@ apply_fast_cgi(const std::string& arg) {
|
||||
control->set_xmlrpc(new rpc::XmlRpc);
|
||||
control->xmlrpc()->set_slot_call_command(rak::mem_fn(control->variable(), &utils::VariableMap::call_command));
|
||||
|
||||
unsigned int count = 0;
|
||||
|
||||
for (utils::VariableMap::const_iterator itr = control->variable()->begin(), last = control->variable()->end(); itr != last; itr++)
|
||||
if (itr->second.m_flags & utils::VariableMap::flag_public_xmlrpc)
|
||||
if (itr->second.m_flags & utils::VariableMap::flag_public_xmlrpc) {
|
||||
control->xmlrpc()->insert_command(itr->first, itr->second.m_parm, itr->second.m_doc);
|
||||
|
||||
count++;
|
||||
}
|
||||
|
||||
char buffer[128];
|
||||
sprintf(buffer, "FastCGI initialized with %u functions.", count);
|
||||
|
||||
control->core()->push_log(buffer);
|
||||
}
|
||||
|
||||
control->set_fast_cgi(new rpc::FastCgi(arg));
|
||||
|
||||
Reference in New Issue
Block a user