diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-01-08 11:03:52 +0100 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-01-08 11:18:28 +0100 |
commit | 8a7f0001be88122256b1a8dc29b066210dc85625 (patch) | |
tree | 02d35c01a5d68c8aa54662cbf0f0acec0681f1f2 /src/rpcserver.h | |
parent | db198d51a651086744871c972637f3856675a2ed (diff) |
[RPC] remove the option of having multiple timer interfaces
Diffstat (limited to 'src/rpcserver.h')
-rw-r--r-- | src/rpcserver.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/rpcserver.h b/src/rpcserver.h index f85ab42f02..9dce318872 100644 --- a/src/rpcserver.h +++ b/src/rpcserver.h @@ -100,10 +100,12 @@ public: virtual RPCTimerBase* NewTimer(boost::function<void(void)>& func, int64_t millis) = 0; }; -/** Register factory function for timers */ -void RPCRegisterTimerInterface(RPCTimerInterface *iface); -/** Unregister factory function for timers */ -void RPCUnregisterTimerInterface(RPCTimerInterface *iface); +/** Set the factory function for timers */ +void RPCSetTimerInterface(RPCTimerInterface *iface); +/** Set the factory function for timer, but only, if unset */ +void RPCSetTimerInterfaceIfUnset(RPCTimerInterface *iface); +/** Unset factory function for timers */ +void RPCUnsetTimerInterface(RPCTimerInterface *iface); /** * Run func nSeconds from now. |