mirror of https://github.com/aria2/aria2
2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added XML-RPC in -v Configuration output. * src/FeatureConfig.cc * src/FeatureConfig.h * test/FeatureConfigTest.ccpull/1/head
parent
7329c0fce0
commit
7cce6c46a8
|
@ -1,3 +1,10 @@
|
||||||
|
2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Added XML-RPC in -v Configuration output.
|
||||||
|
* src/FeatureConfig.cc
|
||||||
|
* src/FeatureConfig.h
|
||||||
|
* test/FeatureConfigTest.cc
|
||||||
|
|
||||||
2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Updated Bulgarian, Russian, Slovak and Japanese
|
Updated Bulgarian, Russian, Slovak and Japanese
|
||||||
|
|
|
@ -49,6 +49,7 @@ const std::string FeatureConfig::FEATURE_BITTORRENT("BitTorrent");
|
||||||
const std::string FeatureConfig::FEATURE_METALINK("Metalink");
|
const std::string FeatureConfig::FEATURE_METALINK("Metalink");
|
||||||
const std::string FeatureConfig::FEATURE_MESSAGE_DIGEST("Message Digest");
|
const std::string FeatureConfig::FEATURE_MESSAGE_DIGEST("Message Digest");
|
||||||
const std::string FeatureConfig::FEATURE_ASYNC_DNS("Async DNS");
|
const std::string FeatureConfig::FEATURE_ASYNC_DNS("Async DNS");
|
||||||
|
const std::string FeatureConfig::FEATURE_XML_RPC("XML-RPC");
|
||||||
const std::string FeatureConfig::FEATURE_GZIP("GZip");
|
const std::string FeatureConfig::FEATURE_GZIP("GZip");
|
||||||
const std::string FeatureConfig::FEATURE_FIREFOX3_COOKIE("Firefox3 Cookie");
|
const std::string FeatureConfig::FEATURE_FIREFOX3_COOKIE("Firefox3 Cookie");
|
||||||
|
|
||||||
|
@ -82,6 +83,12 @@ const std::string FeatureConfig::FEATURE_FIREFOX3_COOKIE("Firefox3 Cookie");
|
||||||
# define ASYNC_DNS_ENABLED false
|
# define ASYNC_DNS_ENABLED false
|
||||||
#endif // !ENABLE_ASYNC_DNS
|
#endif // !ENABLE_ASYNC_DNS
|
||||||
|
|
||||||
|
#ifdef ENABLE_XML_RPC
|
||||||
|
# define XML_RPC_ENABLED true
|
||||||
|
#else // !ENABLE_XML_RPC
|
||||||
|
# define XML_RPC_ENABLED false
|
||||||
|
#endif // !ENABLE_XML_RPC
|
||||||
|
|
||||||
#ifdef HAVE_LIBZ
|
#ifdef HAVE_LIBZ
|
||||||
# define GZIP_ENABLED true
|
# define GZIP_ENABLED true
|
||||||
#else // !HAVE_LIBZ
|
#else // !HAVE_LIBZ
|
||||||
|
@ -105,6 +112,7 @@ FeatureConfig::FeatureConfig() {
|
||||||
FeatureMap::value_type(FEATURE_METALINK, METALINK_ENABLED),
|
FeatureMap::value_type(FEATURE_METALINK, METALINK_ENABLED),
|
||||||
FeatureMap::value_type(FEATURE_MESSAGE_DIGEST, MESSAGE_DIGEST_ENABLED),
|
FeatureMap::value_type(FEATURE_MESSAGE_DIGEST, MESSAGE_DIGEST_ENABLED),
|
||||||
FeatureMap::value_type(FEATURE_ASYNC_DNS, ASYNC_DNS_ENABLED),
|
FeatureMap::value_type(FEATURE_ASYNC_DNS, ASYNC_DNS_ENABLED),
|
||||||
|
FeatureMap::value_type(FEATURE_XML_RPC, XML_RPC_ENABLED),
|
||||||
FeatureMap::value_type(FEATURE_GZIP, GZIP_ENABLED),
|
FeatureMap::value_type(FEATURE_GZIP, GZIP_ENABLED),
|
||||||
FeatureMap::value_type(FEATURE_FIREFOX3_COOKIE, FIREFOX3_COOKIE_ENABLED),
|
FeatureMap::value_type(FEATURE_FIREFOX3_COOKIE, FIREFOX3_COOKIE_ENABLED),
|
||||||
};
|
};
|
||||||
|
|
|
@ -36,10 +36,12 @@
|
||||||
#define _D_FEATURE_CONFIG_H_
|
#define _D_FEATURE_CONFIG_H_
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "SharedHandle.h"
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include "SharedHandle.h"
|
||||||
|
|
||||||
namespace aria2 {
|
namespace aria2 {
|
||||||
|
|
||||||
typedef std::map<std::string, uint16_t> PortMap;
|
typedef std::map<std::string, uint16_t> PortMap;
|
||||||
|
@ -72,6 +74,7 @@ public:
|
||||||
static const std::string FEATURE_METALINK;
|
static const std::string FEATURE_METALINK;
|
||||||
static const std::string FEATURE_MESSAGE_DIGEST;
|
static const std::string FEATURE_MESSAGE_DIGEST;
|
||||||
static const std::string FEATURE_ASYNC_DNS;
|
static const std::string FEATURE_ASYNC_DNS;
|
||||||
|
static const std::string FEATURE_XML_RPC;
|
||||||
static const std::string FEATURE_GZIP;
|
static const std::string FEATURE_GZIP;
|
||||||
static const std::string FEATURE_FIREFOX3_COOKIE;
|
static const std::string FEATURE_FIREFOX3_COOKIE;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
#include "FeatureConfig.h"
|
#include "FeatureConfig.h"
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
|
#include <cppunit/extensions/HelperMacros.h>
|
||||||
|
|
||||||
#include "a2functional.h"
|
#include "a2functional.h"
|
||||||
#include "array_fun.h"
|
#include "array_fun.h"
|
||||||
#include "Util.h"
|
#include "Util.h"
|
||||||
#include <algorithm>
|
|
||||||
#include <cppunit/extensions/HelperMacros.h>
|
|
||||||
|
|
||||||
namespace aria2 {
|
namespace aria2 {
|
||||||
|
|
||||||
|
@ -78,6 +81,10 @@ void FeatureConfigTest::testFeatureSummary() {
|
||||||
"Metalink",
|
"Metalink",
|
||||||
#endif // ENABLE_METALINK
|
#endif // ENABLE_METALINK
|
||||||
|
|
||||||
|
#ifdef ENABLE_XML_RPC
|
||||||
|
"XML-RPC",
|
||||||
|
#endif // ENABLE_XML_RPC
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
std::string featuresString;
|
std::string featuresString;
|
||||||
|
|
Loading…
Reference in New Issue