Workshop o mikrokontrolérech na SKSP 2024.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
698 B

2 months ago
/*
* UCW Library -- Signal Handling
*
* (c) 2012 Martin Mares <mj@ucw.cz>
*
* This software may be freely distributed and used according to the terms
* of the GNU Lesser General Public License.
*/
#ifndef _UCW_SIGHANDLER_H
#define _UCW_SIGHANDLER_H
#ifdef CONFIG_UCW_CLEAN_ABI
#define handle_signal ucw_handle_signal
#define set_signal_handler ucw_set_signal_handler
#define unhandle_signal ucw_unhandle_signal
#endif
typedef int (*ucw_sighandler_t)(int); // gets signum, returns nonzero if abort() should be called
void handle_signal(int signum);
void unhandle_signal(int signum);
ucw_sighandler_t set_signal_handler(int signum, ucw_sighandler_t newh);
#endif /* !_UCW_SIGHANDLER_H */