1 /* utilproto.h - Some prototypes for inclusion by util.h
2 * Copyright (C) 2016 Werner Koch
4 * This file is part of GnuPG.
6 * This file is free software; you can redistribute it and/or modify
7 * it under the terms of either
9 * - the GNU Lesser General Public License as published by the Free
10 * Software Foundation; either version 3 of the License, or (at
11 * your option) any later version.
15 * - the GNU General Public License as published by the Free
16 * Software Foundation; either version 2 of the License, or (at
17 * your option) any later version.
19 * or both in parallel, as here.
21 * This file is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, see <https://www.gnu.org/licenses/>.
30 /* This file is in general included via util.h but sometimes we do not
31 * want all stuff from util.h and instead use this file with its
32 * simple prototypes. */
34 #ifndef GNUPG_COMMON_UTILPROTO_H
35 #define GNUPG_COMMON_UTILPROTO_H
38 void gnupg_init_signals (int mode, void (*fast_cleanup)(void));
39 void gnupg_block_all_signals (void);
40 void gnupg_unblock_all_signals (void);
44 #endif /*GNUPG_COMMON_UTILPROTO_H*/