Mercurial > hg > bitcoin
changeset 2679:201b258cec77 draft
rpcdump: include cleanup. move JSONRPCError def to bitcoinrpc.h.
author | Jeff Garzik <jgarzik@exmulti.com> |
---|---|
date | Wed, 23 May 2012 23:20:07 -0400 (2012-05-24) |
parents | 51f930d27f7f |
children | eb55353530b0 |
files | src/bitcoinrpc.h src/rpcdump.cpp |
diffstat | 2 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/bitcoinrpc.h +++ b/src/bitcoinrpc.h @@ -13,6 +13,8 @@ #include "json/json_spirit_writer_template.h" #include "json/json_spirit_utils.h" +json_spirit::Object JSONRPCError(int code, const std::string& message); + void ThreadRPCServer(void* parg); int CommandLineRPC(int argc, char *argv[]);
--- a/src/rpcdump.cpp +++ b/src/rpcdump.cpp @@ -8,18 +8,12 @@ #include <boost/lexical_cast.hpp> -#include "json/json_spirit_reader_template.h" -#include "json/json_spirit_writer_template.h" -#include "json/json_spirit_utils.h" - #define printf OutputDebugStringF // using namespace boost::asio; using namespace json_spirit; using namespace std; -extern Object JSONRPCError(int code, const string& message); - class CTxDump { public: