mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-10 20:22:31 +00:00
* Added configure options that allow building universal binaries.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@889 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -72,6 +72,7 @@ xmlrpc_call_command(xmlrpc_env* env, xmlrpc_value* args, void* voidServerInfo) {
|
||||
if (env->fault_occurred)
|
||||
return NULL;
|
||||
|
||||
// Move this into a helper function.
|
||||
for (unsigned int i = 0; i != last; i++) {
|
||||
xmlrpc_value* value;
|
||||
xmlrpc_array_read_item(env, args, i, &value);
|
||||
@@ -154,6 +155,8 @@ XmlRpc::XmlRpc() : m_env(new xmlrpc_env) {
|
||||
xmlrpc_env_init(m_env);
|
||||
m_registry = xmlrpc_registry_new(m_env);
|
||||
|
||||
// Add a helper function for this...
|
||||
|
||||
xmlrpc_registry_add_method_w_doc(m_env, m_registry, NULL, "call.set_upload_rate", &xmlrpc_call_command, new server_info_t("upload_rate", &m_slotSet), "i:i", "");
|
||||
xmlrpc_registry_add_method_w_doc(m_env, m_registry, NULL, "call.get_upload_rate", &xmlrpc_call_command, new server_info_t("upload_rate", &m_slotGet), "i:", "");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user