Debian Codegraph @

src/dex-unix-signal.h

raw symbols SCIP
1 /*
2 * dex-unix-signal.h
3 *
4 * Copyright 2022 Christian Hergert <[email protected]>
5 *
6 * This library is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as
8 * published by the Free Software Foundation; either version 2.1 of the
9 * License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
18 *
19 * SPDX-License-Identifier: LGPL-2.1-or-later
20 */
21
22 #pragma once
23
24 #include "dex-future.h"
25
26 G_BEGIN_DECLS
27
28 #define DEX_TYPE_UNIX_SIGNAL (dex_unix_signal_get_type())
29 #define DEX_UNIX_SIGNAL(obj) (G_TYPE_CHECK_INSTANCE_CAST(obj, DEX_TYPE_UNIX_SIGNAL, DexUnixSignal))
30 #define DEX_IS_UNIX_SIGNAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE(obj, DEX_TYPE_UNIX_SIGNAL))
31
32 typedef struct _DexUnixSignal DexUnixSignal;
33
34 DEX_AVAILABLE_IN_ALL
35 GType dex_unix_signal_get_type (void);
36 DEX_AVAILABLE_IN_ALL
37 DexFuture *dex_unix_signal_new (int signum) G_GNUC_WARN_UNUSED_RESULT;
38 DEX_AVAILABLE_IN_ALL
39 int dex_unix_signal_get_signum (DexUnixSignal *unix_signal);
40
41 G_DEFINE_AUTOPTR_CLEANUP_FUNC (DexUnixSignal, dex_unref)
42
43 G_END_DECLS