2019-02-28 05:35:30 +00:00
|
|
|
/*
|
|
|
|
Looking Glass - KVM FrameRelay (KVMFR) Client
|
2020-01-02 11:21:42 +00:00
|
|
|
Copyright (C) 2017-2020 Geoffrey McRae <geoff@hostfission.com>
|
2019-02-28 05:35:30 +00:00
|
|
|
https://looking-glass.hostfission.com
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it under
|
|
|
|
the terms of the GNU General Public License as published by the Free Software
|
|
|
|
Foundation; either version 2 of the License, or (at your option) any later
|
|
|
|
version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
|
|
PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along with
|
|
|
|
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
|
|
|
Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2019-02-28 08:20:35 +00:00
|
|
|
#include <stdbool.h>
|
2019-02-28 05:35:30 +00:00
|
|
|
|
2021-01-21 04:07:19 +00:00
|
|
|
// exit code for user opted to exit looking-glass-host
|
|
|
|
#define LG_HOST_EXIT_USER 0xfee1dead
|
|
|
|
// exit code for capture errors that should result in a restart, e.g. UAC
|
|
|
|
#define LG_HOST_EXIT_CAPTURE 0xdead0000
|
|
|
|
// exit code for terminated
|
|
|
|
#define LG_HOST_EXIT_KILLED 0xdeadbeef
|
|
|
|
// exit code for failed to start
|
|
|
|
#define LG_HOST_EXIT_FAILED 0xdeadbaad
|
|
|
|
|
2019-05-09 09:30:09 +00:00
|
|
|
int app_main(int argc, char * argv[]);
|
2019-05-09 12:06:58 +00:00
|
|
|
bool app_init();
|
2021-01-21 04:14:50 +00:00
|
|
|
void app_shutdown();
|
2019-03-02 09:31:33 +00:00
|
|
|
void app_quit();
|
2019-02-28 05:35:30 +00:00
|
|
|
|
2019-02-28 08:20:35 +00:00
|
|
|
// these must be implemented for each OS
|
2020-04-24 10:34:58 +00:00
|
|
|
const char * os_getExecutable();
|
2020-05-30 02:31:26 +00:00
|
|
|
const char * os_getDataPath();
|