From fb2a2076a20fe0cc720e12b4dbd57cf90650a5a8 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 28 Feb 2019 19:31:04 +1100 Subject: [PATCH] [c-host] added linux platform stubs --- c-host/Makefile | 2 ++ c-host/linux/platform.c | 45 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 c-host/linux/platform.c diff --git a/c-host/Makefile b/c-host/Makefile index b8f2b1a7..da9ab5bb 100644 --- a/c-host/Makefile +++ b/c-host/Makefile @@ -23,6 +23,8 @@ ifdef OS DLLS += dll/libd3d11.a OBJS += capture/dxgi.o endif +else + OBJS += linux/platform.o endif all: $(OBJS) $(DLLS) diff --git a/c-host/linux/platform.c b/c-host/linux/platform.c new file mode 100644 index 00000000..3c70f8c5 --- /dev/null +++ b/c-host/linux/platform.c @@ -0,0 +1,45 @@ +/* +Looking Glass - KVM FrameRelay (KVMFR) Client +Copyright (C) 2017-2019 Geoffrey McRae +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 +*/ + +#include "app.h" +#include "debug.h" + +int main(int argc, char * argv[]) +{ + int result = app_main(); + os_shmemUnmap(); + return result; +} + +unsigned int os_shmemSize() +{ + // TODO + return 0; +} + +bool os_shmemMmap(void **ptr) +{ + // TODO + return false; +} + +void os_shmemUnmap() +{ + // TODO +} \ No newline at end of file