mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-17 23:52:30 +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_c.cc \
|
||||
rpc/xmlrpc_tinyxml2.cc \
|
||||
rpc/tinyxml2/tinyxml2.h \
|
||||
rpc/tinyxml2/tinyxml2.cpp \
|
||||
\
|
||||
ui/download.cc \
|
||||
ui/download.h \
|
||||
@@ -190,10 +192,7 @@ libsub_root_a_SOURCES = \
|
||||
thread_base.cc \
|
||||
thread_base.h \
|
||||
thread_worker.cc \
|
||||
thread_worker.h \
|
||||
\
|
||||
vendor/tinyxml2/tinyxml2.h \
|
||||
vendor/tinyxml2/tinyxml2.cpp
|
||||
thread_worker.h
|
||||
|
||||
|
||||
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_2 = 0xbfU;
|
||||
|
||||
namespace rpc // rtorrent-specific namespace
|
||||
{
|
||||
namespace tinyxml2
|
||||
{
|
||||
|
||||
@@ -3028,4 +3030,5 @@ bool XMLPrinter::Visit( const XMLUnknown& unknown )
|
||||
}
|
||||
|
||||
} // namespace tinyxml2
|
||||
} // namespace rpc
|
||||
#endif
|
||||
@@ -113,6 +113,8 @@ static const int TIXML2_PATCH_VERSION = 0;
|
||||
// so there needs to be a limit in place.
|
||||
static const int TINYXML2_MAX_ELEMENT_DEPTH = 500;
|
||||
|
||||
namespace rpc // rtorrent-specific namespace
|
||||
{
|
||||
namespace tinyxml2
|
||||
{
|
||||
class XMLDocument;
|
||||
@@ -2377,6 +2379,7 @@ private:
|
||||
|
||||
|
||||
} // namespace tinyxml2
|
||||
} // namespace rpc
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# pragma warning(pop)
|
||||
@@ -50,7 +50,7 @@
|
||||
#include <torrent/object.h>
|
||||
#include <torrent/exceptions.h>
|
||||
|
||||
#include "vendor/tinyxml2/tinyxml2.h"
|
||||
#include "rpc/tinyxml2/tinyxml2.h"
|
||||
#include "utils/base64.h"
|
||||
#include "xmlrpc.h"
|
||||
#include "parse_commands.h"
|
||||
|
||||
Reference in New Issue
Block a user