/* */ #ifndef _D_XML_RPC_RESPONSE_H_ #define _D_XML_RPC_RESPONSE_H_ #include "common.h" #include #include "ValueBase.h" namespace aria2 { namespace xmlrpc { struct XmlRpcResponse { // 0 for success, non-zero for error int code; SharedHandle param; XmlRpcResponse (int code, const SharedHandle& param):code(code), param(param) {} std::string toXml(bool gzip = false) const; }; } // namespace xmlrpc } // namespace aria2 #endif // _D_XML_RPC_RESPONSE_H_