| 587 | namespace authorization { |
| 588 | |
| 589 | void setCallbacks(const AuthorizationCallbacks& callbacks) |
| 590 | { |
| 591 | synchronized (authorization_callbacks_mutex) { |
| 592 | if (authorization_callbacks.load() != nullptr) { |
| 593 | delete authorization_callbacks.load(); |
| 594 | } |
| 595 | |
| 596 | authorization_callbacks.store(new AuthorizationCallbacks(callbacks)); |
| 597 | } |
| 598 | } |
| 599 | |
| 600 | |
| 601 | void unsetCallbacks() |
no outgoing calls