From d065bae323838734556de2693b6b004c98c95092 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 15 Feb 2011 16:11:24 +0200 Subject: Ctrl+C handling on POSIX, some commands for server and other tweaking --- src/porting.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/porting.h') diff --git a/src/porting.h b/src/porting.h index 3133fcc80..3cf8df594 100644 --- a/src/porting.h +++ b/src/porting.h @@ -25,7 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #define PORTING_HEADER #include -// Included for u64 and such +// Included for u32 and such #include "common_irrlicht.h" #include "debug.h" #include "constants.h" @@ -47,6 +47,15 @@ with this program; if not, write to the Free Software Foundation, Inc., namespace porting { +/* + Signal handler (grabs Ctrl-C on POSIX systems) +*/ + +void signal_handler_init(void); +// Returns a pointer to a bool. +// When the bool is true, program should quit. +bool * signal_handler_killstatus(void); + /* Path of static data directory. */ -- cgit v1.2.3