[host] use posix compatible exit codes (signed char)

This commit is contained in:
Geoffrey McRae 2021-01-21 15:24:02 +11:00
parent e926bad759
commit ef4df571f0

View File

@ -22,13 +22,13 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include <stdbool.h>
// 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();