| 119 | } |
| 120 | |
| 121 | void RegisterSharedValidationInterface(std::shared_ptr<CValidationInterface> callbacks) |
| 122 | { |
| 123 | // Each connection captures the shared_ptr to ensure that each callback is |
| 124 | // executed before the subscriber is destroyed. For more details see #18338. |
| 125 | g_signals.m_internals->Register(std::move(callbacks)); |
| 126 | } |
| 127 | |
| 128 | void RegisterValidationInterface(CValidationInterface* callbacks) |
| 129 | { |