* 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:
rakshasa
2007-04-10 22:36:43 +00:00
parent 8501832788
commit 4a449bae67
3 changed files with 52 additions and 0 deletions
+3
View File
@@ -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:", "");