Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/util.h
Show All 12 Lines | |||||
#include <string> | #include <string> | ||||
#include <vector> | #include <vector> | ||||
class CChainParams; | class CChainParams; | ||||
class CKeyStore; | class CKeyStore; | ||||
class CPubKey; | class CPubKey; | ||||
class CScript; | class CScript; | ||||
struct InitInterfaces; | struct NodeContext; | ||||
class UniValue; | class UniValue; | ||||
//! Pointers to interfaces that need to be accessible from RPC methods. Due to | //! Pointers to interfaces that need to be accessible from RPC methods. Due to | ||||
//! limitations of the RPC framework, there's currently no direct way to pass in | //! limitations of the RPC framework, there's currently no direct way to pass in | ||||
//! state to RPC method implementations. | //! state to RPC method implementations. | ||||
extern InitInterfaces *g_rpc_interfaces; | extern NodeContext *g_rpc_node; | ||||
/** | /** | ||||
* Wrapper for UniValue::VType, which includes typeAny: used to denote don't | * Wrapper for UniValue::VType, which includes typeAny: used to denote don't | ||||
* care type. | * care type. | ||||
*/ | */ | ||||
struct UniValueType { | struct UniValueType { | ||||
UniValueType(UniValue::VType _type) : typeAny(false), type(_type) {} | UniValueType(UniValue::VType _type) : typeAny(false), type(_type) {} | ||||
UniValueType() : typeAny(true) {} | UniValueType() : typeAny(true) {} | ||||
▲ Show 20 Lines • Show All 184 Lines • Show Last 20 Lines |