[host] rename project to "Looking Glass"

This commit is contained in:
Geoffrey McRae 2017-12-04 02:31:16 +11:00
parent 10e6408022
commit ec13fc161d
17 changed files with 28 additions and 27 deletions

View File

@ -1,5 +1,5 @@
/* /*
KVMGFX Client - A KVM Client for VGA Passthrough Looking Glass - KVM FrameRelay (KVMFR) Client
Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com> Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com>
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under

View File

@ -1,5 +1,5 @@
/* /*
KVMGFX Client - A KVM Client for VGA Passthrough Looking Glass - KVM FrameRelay (KVMFR) Client
Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com> Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com>
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under

View File

@ -1,5 +1,5 @@
/* /*
KVMGFX Client - A KVM Client for VGA Passthrough Looking Glass - KVM FrameRelay (KVMFR) Client
Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com> Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com>
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under

View File

@ -1,5 +1,5 @@
/* /*
KVMGFX Client - A KVM Client for VGA Passthrough Looking Glass - KVM FrameRelay (KVMFR) Client
Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com> Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com>
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under

View File

@ -1,5 +1,5 @@
/* /*
KVMGFX Client - A KVM Client for VGA Passthrough Looking Glass - KVM FrameRelay (KVMFR) Client
Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com> Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com>
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under

View File

@ -1,5 +1,5 @@
/* /*
KVMGFX Client - A KVM Client for VGA Passthrough Looking Glass - KVM FrameRelay (KVMFR) Client
Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com> Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com>
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under
@ -47,7 +47,7 @@ LONG WINAPI CrashHandler::ExceptionFilter(struct _EXCEPTION_POINTERS * apExcepti
return EXCEPTION_CONTINUE_SEARCH; return EXCEPTION_CONTINUE_SEARCH;
HANDLE hFile = CreateFileA( HANDLE hFile = CreateFileA(
"kvm-ivshmem-host.dump", "looking-glass-host.dump",
GENERIC_WRITE, GENERIC_WRITE,
FILE_SHARE_WRITE, FILE_SHARE_WRITE,
NULL, NULL,

View File

@ -1,5 +1,5 @@
/* /*
KVMGFX Client - A KVM Client for VGA Passthrough Looking Glass - KVM FrameRelay (KVMFR) Client
Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com> Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com>
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under

View File

@ -1,5 +1,5 @@
/* /*
KVMGFX Client - A KVM Client for VGA Passthrough Looking Glass - KVM FrameRelay (KVMFR) Client
Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com> Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com>
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under
@ -18,7 +18,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#pragma once #pragma once
#include "common/KVMGFXHeader.h" #include "common/KVMFR.h"
#include <vector> #include <vector>
struct FrameInfo struct FrameInfo

View File

@ -1,5 +1,5 @@
/* /*
KVMGFX Client - A KVM Client for VGA Passthrough Looking Glass - KVM FrameRelay (KVMFR) Client
Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com> Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com>
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under

View File

@ -1,5 +1,5 @@
/* /*
KVMGFX Client - A KVM Client for VGA Passthrough Looking Glass - KVM FrameRelay (KVMFR) Client
Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com> Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com>
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under

View File

@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14 # Visual Studio 14
VisualStudioVersion = 14.0.25420.1 VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "kvm-ivshmem-host", "kvm-ivshmem-host.vcxproj", "{D439DE3E-32FB-4599-8B5D-C92674D400D4}" Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "looking-glass-host", "looking-glass-host.vcxproj", "{D439DE3E-32FB-4599-8B5D-C92674D400D4}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution

View File

@ -1,5 +1,5 @@
/* /*
KVMGFX Client - A KVM Client for VGA Passthrough Looking Glass - KVM FrameRelay (KVMFR) Client
Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com> Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com>
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under
@ -20,7 +20,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include "IVSHMEM.h" #include "IVSHMEM.h"
#include "common\debug.h" #include "common\debug.h"
#include "common\KVMGFXHeader.h" #include "common\KVMFR.h"
#include "CaptureFactory.h" #include "CaptureFactory.h"
@ -53,9 +53,9 @@ bool Service::Initialize(ICapture * captureDevice)
return false; return false;
} }
if (m_ivshmem->GetSize() < sizeof(KVMGFXHeader)) if (m_ivshmem->GetSize() < sizeof(KVMFRHeader))
{ {
DEBUG_ERROR("Shared memory is not large enough for the KVMGFXHeader"); DEBUG_ERROR("Shared memory is not large enough for the KVMFRHeader");
DeInitialize(); DeInitialize();
return false; return false;
} }
@ -76,8 +76,8 @@ bool Service::Initialize(ICapture * captureDevice)
return false; return false;
} }
m_header = reinterpret_cast<KVMGFXHeader *>(memory); m_header = reinterpret_cast<KVMFRHeader *>(memory);
m_frame[0] = (uint8_t *)(((uintptr_t)memory + sizeof(KVMGFXHeader *) + 0x7F) & ~0x7F); m_frame[0] = (uint8_t *)(((uintptr_t)memory + sizeof(KVMFRHeader *) + 0x7F) & ~0x7F);
m_frameSize = ((m_ivshmem->GetSize() - (m_frame[0] - memory)) & ~0x7F) >> 1; m_frameSize = ((m_ivshmem->GetSize() - (m_frame[0] - memory)) & ~0x7F) >> 1;
m_frame[1] = m_frame[0] + m_frameSize; m_frame[1] = m_frame[0] + m_frameSize;
m_dataOffset[0] = m_frame[0] - memory; m_dataOffset[0] = m_frame[0] - memory;
@ -93,10 +93,10 @@ bool Service::Initialize(ICapture * captureDevice)
// we save this as it might actually be valid // we save this as it might actually be valid
UINT16 hostID = m_header->hostID; UINT16 hostID = m_header->hostID;
ZeroMemory(m_header, sizeof(KVMGFXHeader)); ZeroMemory(m_header, sizeof(KVMFRHeader));
memcpy(m_header->magic, KVMGFX_HEADER_MAGIC, sizeof(KVMGFX_HEADER_MAGIC)); memcpy(m_header->magic, KVMFR_HEADER_MAGIC, sizeof(KVMFR_HEADER_MAGIC));
m_header->version = KVMGFX_HEADER_VERSION; m_header->version = KVMFR_HEADER_VERSION;
m_header->guestID = m_ivshmem->GetPeerID(); m_header->guestID = m_ivshmem->GetPeerID();
m_header->hostID = hostID; m_header->hostID = hostID;
m_header->frameType = m_capture->GetFrameType(); m_header->frameType = m_capture->GetFrameType();

View File

@ -1,5 +1,5 @@
/* /*
KVMGFX Client - A KVM Client for VGA Passthrough Looking Glass - KVM FrameRelay (KVMFR) Client
Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com> Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com>
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under
@ -50,7 +50,7 @@ private:
HANDLE m_readyEvent; HANDLE m_readyEvent;
ICapture * m_capture; ICapture * m_capture;
KVMGFXHeader * m_header; KVMFRHeader * m_header;
uint8_t * m_frame[2]; uint8_t * m_frame[2];
size_t m_frameSize; size_t m_frameSize;
uint64_t m_dataOffset[2]; uint64_t m_dataOffset[2];

View File

@ -1,5 +1,5 @@
/* /*
KVMGFX Client - A KVM Client for VGA Passthrough Looking Glass - KVM FrameRelay (KVMFR) Client
Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com> Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com>
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under

View File

@ -23,6 +23,7 @@
<Keyword>Win32Proj</Keyword> <Keyword>Win32Proj</Keyword>
<RootNamespace>kvmivshmemhost</RootNamespace> <RootNamespace>kvmivshmemhost</RootNamespace>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion> <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
<ProjectName>looking-glass-host</ProjectName>
</PropertyGroup> </PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">

View File

@ -1,5 +1,5 @@
/* /*
KVMGFX Client - A KVM Client for VGA Passthrough Looking Glass - KVM FrameRelay (KVMFR) Client
Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com> Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com>
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under
@ -202,7 +202,7 @@ void doLicense()
{ {
setupConsole(); setupConsole();
fprintf(stderr, fprintf(stderr,
"KVMGFX Client - A KVM Client for VGA Passthrough\n" "Looking Glass - KVM FrameRelay (KVMFR) Client\n"
"Copyright(C) 2017 Geoffrey McRae <geoff@hostfission.com>\n" "Copyright(C) 2017 Geoffrey McRae <geoff@hostfission.com>\n"
"\n" "\n"
"This program is free software; you can redistribute it and / or modify it under\n" "This program is free software; you can redistribute it and / or modify it under\n"