|
|
|
@ -15,8 +15,6 @@
@@ -15,8 +15,6 @@
|
|
|
|
|
#include <stdint.h> |
|
|
|
|
#include <string> |
|
|
|
|
|
|
|
|
|
#include <boost/function.hpp> |
|
|
|
|
|
|
|
|
|
#include <univalue.h> |
|
|
|
|
|
|
|
|
|
static const unsigned int DEFAULT_RPC_SERIALIZE_VERSION = 1; |
|
|
|
@ -25,9 +23,9 @@ class CRPCCommand;
@@ -25,9 +23,9 @@ 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 OnStarted(std::function<void ()> slot); |
|
|
|
|
void OnStopped(std::function<void ()> slot); |
|
|
|
|
void OnPreCommand(std::function<void (const CRPCCommand&)> slot); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class CBlockIndex; |
|
|
|
@ -115,7 +113,7 @@ public:
@@ -115,7 +113,7 @@ public:
|
|
|
|
|
* This is needed to cope with the case in which there is no HTTP server, but |
|
|
|
|
* only GUI RPC console, and to break the dependency of pcserver on httprpc. |
|
|
|
|
*/ |
|
|
|
|
virtual RPCTimerBase* NewTimer(boost::function<void(void)>& func, int64_t millis) = 0; |
|
|
|
|
virtual RPCTimerBase* NewTimer(std::function<void(void)>& func, int64_t millis) = 0; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** Set the factory function for timers */ |
|
|
|
@ -129,7 +127,7 @@ void RPCUnsetTimerInterface(RPCTimerInterface *iface);
@@ -129,7 +127,7 @@ void RPCUnsetTimerInterface(RPCTimerInterface *iface);
|
|
|
|
|
* Run func nSeconds from now. |
|
|
|
|
* Overrides previous timer <name> (if any). |
|
|
|
|
*/ |
|
|
|
|
void RPCRunLater(const std::string& name, boost::function<void(void)> func, int64_t nSeconds); |
|
|
|
|
void RPCRunLater(const std::string& name, std::function<void(void)> func, int64_t nSeconds); |
|
|
|
|
|
|
|
|
|
typedef UniValue(*rpcfn_type)(const JSONRPCRequest& jsonRequest); |
|
|
|
|
|
|
|
|
|