diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-02-15 16:11:24 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-02-15 16:11:24 +0200 |
commit | d065bae323838734556de2693b6b004c98c95092 (patch) | |
tree | c51888cc0c2628f1a3e5cd2ba05b4297c2a22869 /src/porting.h | |
parent | be7391c2b1153c817a69aabd2a34e082c79df58f (diff) | |
download | minetest-d065bae323838734556de2693b6b004c98c95092.tar.gz minetest-d065bae323838734556de2693b6b004c98c95092.tar.bz2 minetest-d065bae323838734556de2693b6b004c98c95092.zip |
Ctrl+C handling on POSIX, some commands for server and other tweaking
Diffstat (limited to 'src/porting.h')
-rw-r--r-- | src/porting.h | 11 |
1 files changed, 10 insertions, 1 deletions
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 <string> -// Included for u64 and such +// Included for u32 and such #include "common_irrlicht.h" #include "debug.h" #include "constants.h" @@ -48,6 +48,15 @@ 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. */ extern std::string path_data; |