Shutdown firebird.
| 3781 | |
| 3782 | // Shutdown firebird. |
| 3783 | int API_ROUTINE fb_shutdown(unsigned int timeout, const int reason) |
| 3784 | { |
| 3785 | StatusVector status(NULL); |
| 3786 | CheckStatusWrapper statusWrapper(&status); |
| 3787 | |
| 3788 | RefPtr<Dispatcher> dispatcher(FB_NEW Dispatcher); |
| 3789 | |
| 3790 | dispatcher->shutdown(&statusWrapper, timeout, reason); |
| 3791 | return (status.getState() & IStatus::STATE_ERRORS) ? FB_FAILURE : FB_SUCCESS; |
| 3792 | } |
| 3793 | |
| 3794 | |
| 3795 | // Register client callback to be called when FB is going down. |