1 // Copyright (c) 2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2012 The Bitcoin developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
7 #define _BITCOINRPC_H_ 1
12 #include "json/json_spirit_reader_template.h"
13 #include "json/json_spirit_writer_template.h"
14 #include "json/json_spirit_utils.h"
16 void ThreadRPCServer(void* parg);
17 int CommandLineRPC(int argc, char *argv[]);
19 typedef json_spirit::Value(*rpcfn_type)(const json_spirit::Array& params, bool fHelp);
32 std::map<std::string, const CRPCCommand*> mapCommands;
35 const CRPCCommand* operator[](std::string name) const;
36 std::string help(std::string name) const;
39 extern const CRPCTable tableRPC;