Move vendored tinyxml2 files to rpc namespace and directory

This commit is contained in:
kannibalox
2024-10-29 14:58:01 -04:00
committed by Jari Sundell
parent fb8632e990
commit dd45684584
4 changed files with 10 additions and 5 deletions
+3 -4
View File
@@ -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)
+1 -1
View File
@@ -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"