| 133 | } |
| 134 | |
| 135 | void RegisterSharedValidationInterface( |
| 136 | std::shared_ptr<CValidationInterface> callbacks) { |
| 137 | // Each connection captures the shared_ptr to ensure that each callback is |
| 138 | // executed before the subscriber is destroyed. For more details see #18338. |
| 139 | g_signals.m_internals->Register(std::move(callbacks)); |
| 140 | } |
| 141 | |
| 142 | void RegisterValidationInterface(CValidationInterface *callbacks) { |
| 143 | // Create a shared_ptr with a no-op deleter - CValidationInterface lifecycle |