Regularize RPC calling.

This commit is contained in:
Arthur Britto
2012-12-02 16:06:20 -08:00
parent fed1250218
commit ee3a2a0857
2 changed files with 53 additions and 49 deletions

View File

@@ -9,12 +9,12 @@
class RPCParser
{
protected:
typedef Json::Value (RPCParser::*parseFuncPtr)(Json::Value jvRet, const Json::Value &jvParams);
typedef Json::Value (RPCParser::*parseFuncPtr)(const Json::Value &jvParams);
Json::Value parseAsIs(Json::Value jvRet, const Json::Value &jvParams);
Json::Value parseAsIs(const Json::Value &jvParams);
public:
Json::Value parseCommand(Json::Value jvRequest);
Json::Value parseCommand(std::string strMethod, Json::Value jvParams);
};
extern int commandLineRPC(const std::vector<std::string>& vCmd);