From ef4df571f029be0c395b2d17d12b3700bff3d47d Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 21 Jan 2021 15:24:02 +1100 Subject: [PATCH] [host] use posix compatible exit codes (signed char) --- host/include/interface/platform.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/host/include/interface/platform.h b/host/include/interface/platform.h index 9ad04cf7..00dd1279 100644 --- a/host/include/interface/platform.h +++ b/host/include/interface/platform.h @@ -22,13 +22,13 @@ Place, Suite 330, Boston, MA 02111-1307 USA #include // exit code for user opted to exit looking-glass-host -#define LG_HOST_EXIT_USER 0xfee1dead +#define LG_HOST_EXIT_USER 0x10 // exit code for capture errors that should result in a restart, e.g. UAC -#define LG_HOST_EXIT_CAPTURE 0xdead0000 +#define LG_HOST_EXIT_CAPTURE 0x20 // exit code for terminated -#define LG_HOST_EXIT_KILLED 0xdeadbeef +#define LG_HOST_EXIT_KILLED 0x30 // exit code for failed to start -#define LG_HOST_EXIT_FAILED 0xdeadbaad +#define LG_HOST_EXIT_FAILED 0x40 int app_main(int argc, char * argv[]); bool app_init();