Share object_to_target between tinyxml2 and xmlrpc-c

This commit is contained in:
kannibalox
2024-11-02 15:04:34 -04:00
committed by Jari Sundell
parent 49cdfee65a
commit e367b162ab
4 changed files with 106 additions and 173 deletions
+5 -2
View File
@@ -37,10 +37,11 @@
#ifndef RTORRENT_RPC_XMLRPC_H
#define RTORRENT_RPC_XMLRPC_H
#include "scgi_task.h"
#include <functional>
#include "command.h"
#include "scgi_task.h"
#include <torrent/hash_string.h>
namespace core {
@@ -76,6 +77,8 @@ public:
static const int call_file = 5;
static const int call_file_itr = 6;
static void object_to_target(const torrent::Object& obj, int callFlags, rpc::target_type* target);
XmlRpc() : m_env(NULL), m_registry(NULL), m_dialect(dialect_i8), m_sizeLimit(SCgiTask::max_content_size) {}
bool is_valid() const;