mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-23 04:25:51 +00:00
Begin moving CLI parsing to CallRPC.
This commit is contained in:
@@ -1,7 +1,25 @@
|
||||
#ifndef __CALLRPC__
|
||||
#define __CALLRPC__
|
||||
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "../json/value.h"
|
||||
|
||||
class RPCParser
|
||||
{
|
||||
protected:
|
||||
typedef Json::Value (RPCParser::*parseFuncPtr)(Json::Value jvRet, const Json::Value &jvParams);
|
||||
|
||||
Json::Value parseAsIs(Json::Value jvRet, const Json::Value &jvParams);
|
||||
|
||||
public:
|
||||
Json::Value parseCommand(Json::Value jvRequest);
|
||||
};
|
||||
|
||||
extern int commandLineRPC(const std::vector<std::string>& vCmd);
|
||||
extern Json::Value callRPC(const std::string& strMethod, const Json::Value& params);
|
||||
|
||||
#endif
|
||||
|
||||
// vim:ts=4
|
||||
|
||||
Reference in New Issue
Block a user