diff options
| author | Eric Lombrozo <[email protected]> | 2014-10-19 04:46:17 -0400 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-01-28 07:41:54 +0100 |
| commit | 4401b2d7c52e0f3841225369fb0d10767c51aaa2 (patch) | |
| tree | 29b0b989569f1a16cba69c287a30e0db220343b6 /src/rpcserver.h | |
| parent | Merge pull request #5506 (diff) | |
| download | discoin-4401b2d7c52e0f3841225369fb0d10767c51aaa2.tar.xz discoin-4401b2d7c52e0f3841225369fb0d10767c51aaa2.zip | |
Removed main.h dependency from rpcserver.cpp
Rebased by @laanwj:
- update for RPC methods added since 84d13ee: setmocktime,
invalidateblock, reconsiderblock. Only the first, setmocktime, required a change,
the other two are thread safe.
Diffstat (limited to 'src/rpcserver.h')
| -rw-r--r-- | src/rpcserver.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rpcserver.h b/src/rpcserver.h index 1b94b758f..41cd9da16 100644 --- a/src/rpcserver.h +++ b/src/rpcserver.h @@ -19,6 +19,16 @@ #include "json/json_spirit_utils.h" #include "json/json_spirit_writer_template.h" +class CRPCCommand; + +namespace RPCServer +{ + void OnStarted(boost::function<void ()> slot); + void OnStopped(boost::function<void ()> slot); + void OnPreCommand(boost::function<void (const CRPCCommand&)> slot); + void OnPostCommand(boost::function<void (const CRPCCommand&)> slot); +} + class CBlockIndex; class CNetAddr; |