diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-07-10 15:55:42 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-07-10 15:55:42 +0000 |
| commit | d6a8fa5b100d87e9c939e4204109da8eaae2018a (patch) | |
| tree | 1c0d5b1a2b60ace9330ea6529bc7380d32884b6a /src/XmlRpcMethodImpl.h | |
| parent | 53d2a64cc5fdbb515fafae6a6024c8c834fdafd6 (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/XmlRpcMethodImpl.h')
| -rw-r--r-- | src/XmlRpcMethodImpl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/XmlRpcMethodImpl.h b/src/XmlRpcMethodImpl.h index 765f7748..c0bf38df 100644 --- a/src/XmlRpcMethodImpl.h +++ b/src/XmlRpcMethodImpl.h @@ -112,6 +112,11 @@ protected: virtual BDE process(const XmlRpcRequest& req, DownloadEngine* e); }; +class GetVersionXmlRpcMethod:public XmlRpcMethod { +protected: + virtual BDE process(const XmlRpcRequest& req, DownloadEngine* e); +}; + class NoSuchMethodXmlRpcMethod:public XmlRpcMethod { protected: virtual BDE process(const XmlRpcRequest& req, DownloadEngine* e); |
