summaryrefslogtreecommitdiff
path: root/support/dktools/dk3signl.h
blob: f5137c9e8bd41a5332c00c7ee0792333ad0368f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
Copyright (C) 2011-2020, Dirk Krause
SPDX-License-Identifier: BSD-3-Clause
*/

/*
	WARNING: This file was generated by the dkct program (see
	http://dktools.sourceforge.net/ for details).
	Changes you make here will be lost if dkct is run again!
	You should modify the original source and run dkct on it.
	Original source: dk3signl.ctr
*/

/**	@file dk3signl.h Header file for the dk3signl module.
*/

#ifndef DK3SIGNL_H_INCLUDED
/** Avoid multiple inclusions. */
#define DK3SIGNL_H_INCLUDED 1


#line 10 "dk3signl.ctr"

#include "dk3conf.h"
#include "dk3types.h"

#ifdef __cplusplus
extern "C" {
#endif

/**	Set new handler for the specified signal.
	@param	signo	Signal number.
	@param	fct	Handler function address.
	@return	The previous handler function address.
*/
dk3_signal_disp_t
dk3signal_set(int signo, dk3_signal_disp_t fct);

/**	Refresh signal handler, if only signal() mechanism available.
	Should be a signal handlers first action.
	@param	signo	Signal number.
	@param	fct	Handler function address.
*/
void
dk3signal_refresh(int signo, dk3_signal_disp_t fct);

/**	Find best available signal handling mechanism.
	@return	DK3_SIGNAL_HANDLING_TYPE_xxx.
*/
int
dk3signal_available(void);

#ifdef __cplusplus
}
#endif




#endif