mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-21 16:46:18 +00:00
Move vendored tinyxml2 files to rpc namespace and directory
This commit is contained in:
+3
-4
@@ -123,6 +123,8 @@ libsub_root_a_SOURCES = \
|
|||||||
rpc/xmlrpc.cc \
|
rpc/xmlrpc.cc \
|
||||||
rpc/xmlrpc_c.cc \
|
rpc/xmlrpc_c.cc \
|
||||||
rpc/xmlrpc_tinyxml2.cc \
|
rpc/xmlrpc_tinyxml2.cc \
|
||||||
|
rpc/tinyxml2/tinyxml2.h \
|
||||||
|
rpc/tinyxml2/tinyxml2.cpp \
|
||||||
\
|
\
|
||||||
ui/download.cc \
|
ui/download.cc \
|
||||||
ui/download.h \
|
ui/download.h \
|
||||||
@@ -190,10 +192,7 @@ libsub_root_a_SOURCES = \
|
|||||||
thread_base.cc \
|
thread_base.cc \
|
||||||
thread_base.h \
|
thread_base.h \
|
||||||
thread_worker.cc \
|
thread_worker.cc \
|
||||||
thread_worker.h \
|
thread_worker.h
|
||||||
\
|
|
||||||
vendor/tinyxml2/tinyxml2.h \
|
|
||||||
vendor/tinyxml2/tinyxml2.cpp
|
|
||||||
|
|
||||||
|
|
||||||
AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir)
|
AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir)
|
||||||
|
|||||||
@@ -133,6 +133,8 @@ static const unsigned char TIXML_UTF_LEAD_0 = 0xefU;
|
|||||||
static const unsigned char TIXML_UTF_LEAD_1 = 0xbbU;
|
static const unsigned char TIXML_UTF_LEAD_1 = 0xbbU;
|
||||||
static const unsigned char TIXML_UTF_LEAD_2 = 0xbfU;
|
static const unsigned char TIXML_UTF_LEAD_2 = 0xbfU;
|
||||||
|
|
||||||
|
namespace rpc // rtorrent-specific namespace
|
||||||
|
{
|
||||||
namespace tinyxml2
|
namespace tinyxml2
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -3028,4 +3030,5 @@ bool XMLPrinter::Visit( const XMLUnknown& unknown )
|
|||||||
}
|
}
|
||||||
|
|
||||||
} // namespace tinyxml2
|
} // namespace tinyxml2
|
||||||
|
} // namespace rpc
|
||||||
#endif
|
#endif
|
||||||
@@ -113,6 +113,8 @@ static const int TIXML2_PATCH_VERSION = 0;
|
|||||||
// so there needs to be a limit in place.
|
// so there needs to be a limit in place.
|
||||||
static const int TINYXML2_MAX_ELEMENT_DEPTH = 500;
|
static const int TINYXML2_MAX_ELEMENT_DEPTH = 500;
|
||||||
|
|
||||||
|
namespace rpc // rtorrent-specific namespace
|
||||||
|
{
|
||||||
namespace tinyxml2
|
namespace tinyxml2
|
||||||
{
|
{
|
||||||
class XMLDocument;
|
class XMLDocument;
|
||||||
@@ -2377,6 +2379,7 @@ private:
|
|||||||
|
|
||||||
|
|
||||||
} // namespace tinyxml2
|
} // namespace tinyxml2
|
||||||
|
} // namespace rpc
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
# pragma warning(pop)
|
# pragma warning(pop)
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
#include <torrent/object.h>
|
#include <torrent/object.h>
|
||||||
#include <torrent/exceptions.h>
|
#include <torrent/exceptions.h>
|
||||||
|
|
||||||
#include "vendor/tinyxml2/tinyxml2.h"
|
#include "rpc/tinyxml2/tinyxml2.h"
|
||||||
#include "utils/base64.h"
|
#include "utils/base64.h"
|
||||||
#include "xmlrpc.h"
|
#include "xmlrpc.h"
|
||||||
#include "parse_commands.h"
|
#include "parse_commands.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user