1 | /* |
2 | This file is part of Mtproto-proxy Library. |
3 | |
4 | Mtproto-proxy Library is free software: you can redistribute it and/or modify |
5 | it under the terms of the GNU Lesser General Public License as published by |
6 | the Free Software Foundation, either version 2 of the License, or |
7 | (at your option) any later version. |
8 | |
9 | Mtproto-proxy Library is distributed in the hope that it will be useful, |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | GNU Lesser General Public License for more details. |
13 | |
14 | You should have received a copy of the GNU Lesser General Public License |
15 | along with Mtproto-proxy Library. If not, see <http://www.gnu.org/licenses/>. |
16 | |
17 | Copyright 2013 Vkontakte Ltd |
18 | 2013 Vitaliy Valtman |
19 | 2013 Anton Maydell |
20 | |
21 | Copyright 2014 Telegram Messenger Inc |
22 | 2014 Vitaly Valtman |
23 | 2014 Anton Maydell |
24 | |
25 | Copyright 2015-2016 Telegram Messenger Inc |
26 | 2015-2016 Vitaliy Valtman |
27 | */ |
28 | #pragma once |
29 | |
30 | void sigint_immediate_handler (const int sig); |
31 | void sigterm_immediate_handler (const int sig); |
32 | |
33 | void sigterm_handler (const int sig); |
34 | void sigint_handler (const int sig); |
35 | |
36 | void default_signal_handler (const int sig); |
37 | void quiet_signal_handler (const int sig); |
38 | void empty_signal_handler (const int sig); |
39 | |
40 | int interrupt_signal_raised (void); |
41 | |
42 | int engine_process_signals (void); |
43 | void empty_signal_handler (const int sig); |
44 | |