Changeset View
Changeset View
Standalone View
Standalone View
src/validationinterface.h
Show All 16 Lines | |||||
class CBlock; | class CBlock; | ||||
class CBlockIndex; | class CBlockIndex; | ||||
struct CBlockLocator; | struct CBlockLocator; | ||||
class CConnman; | class CConnman; | ||||
class CValidationInterface; | class CValidationInterface; | ||||
class uint256; | class uint256; | ||||
class CScheduler; | class CScheduler; | ||||
// These functions dispatch to one or all registered wallets | /** Register subscriber */ | ||||
void RegisterValidationInterface(CValidationInterface *callbacks); | |||||
/** Register a wallet to receive updates from core */ | /** | ||||
void RegisterValidationInterface(CValidationInterface *pwalletIn); | * Unregister subscriber. DEPRECATED. This is not safe to use when the RPC | ||||
/** Unregister a wallet from core */ | * server or main message handler thread is running. | ||||
void UnregisterValidationInterface(CValidationInterface *pwalletIn); | */ | ||||
/** Unregister all wallets from core */ | void UnregisterValidationInterface(CValidationInterface *callbacks); | ||||
/** Unregister all subscribers */ | |||||
void UnregisterAllValidationInterfaces(); | void UnregisterAllValidationInterfaces(); | ||||
// Alternate registration functions that release a shared_ptr after the last | // Alternate registration functions that release a shared_ptr after the last | ||||
// notification is sent. These are useful for race-free cleanup, since | // notification is sent. These are useful for race-free cleanup, since | ||||
// unregistration is nonblocking and can return before the last notification is | // unregistration is nonblocking and can return before the last notification is | ||||
// processed. | // processed. | ||||
/** Register subscriber */ | |||||
void RegisterSharedValidationInterface( | void RegisterSharedValidationInterface( | ||||
std::shared_ptr<CValidationInterface> callbacks); | std::shared_ptr<CValidationInterface> callbacks); | ||||
/** Unregister subscriber */ | |||||
void UnregisterSharedValidationInterface( | void UnregisterSharedValidationInterface( | ||||
std::shared_ptr<CValidationInterface> callbacks); | std::shared_ptr<CValidationInterface> callbacks); | ||||
/** | /** | ||||
* Pushes a function to callback onto the notification queue, guaranteeing any | * Pushes a function to callback onto the notification queue, guaranteeing any | ||||
* callbacks generated prior to now are finished when the function is called. | * callbacks generated prior to now are finished when the function is called. | ||||
* | * | ||||
* Be very careful blocking on func to be called if any locks are held - | * Be very careful blocking on func to be called if any locks are held - | ||||
▲ Show 20 Lines • Show All 184 Lines • Show Last 20 Lines |