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