summaryrefslogtreecommitdiff
path: root/src/FeatureConfig.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-07-10 15:55:42 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-07-10 15:55:42 +0000
commitd6a8fa5b100d87e9c939e4204109da8eaae2018a (patch)
tree1c0d5b1a2b60ace9330ea6529bc7380d32884b6a /src/FeatureConfig.h
parent53d2a64cc5fdbb515fafae6a6024c8c834fdafd6 (diff)
2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Implemented getVersion xml-rpc method. This method returns struct which has 2 key-value pairs: "version" key is associated to the version of aria2, such as "1.5.0". "enabledFeatures" key is associated to the list of enabled features, such as "Async DNS", "BitTorrent". * src/FeatureConfig.h * src/XmlRpcMethodFactory.cc * src/XmlRpcMethodImpl.cc * src/XmlRpcMethodImpl.h * test/XmlRpcMethodTest.cc
Diffstat (limited to 'src/FeatureConfig.h')
-rw-r--r--src/FeatureConfig.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/FeatureConfig.h b/src/FeatureConfig.h
index 29ac7a74..97ee1a15 100644
--- a/src/FeatureConfig.h
+++ b/src/FeatureConfig.h
@@ -62,6 +62,11 @@ public:
std::string featureSummary() const;
+ const FeatureMap& getFeatures() const
+ {
+ return _features;
+ }
+
static const std::string FEATURE_HTTPS;
static const std::string FEATURE_BITTORRENT;
static const std::string FEATURE_METALINK;