[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>
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>
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>
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>
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>
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>
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;
HANDLE hFile = CreateFileA(
"kvm-ivshmem-host.dump",
"looking-glass-host.dump",
GENERIC_WRITE,
FILE_SHARE_WRITE,
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>
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>
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
#include "common/KVMGFXHeader.h"
#include "common/KVMFR.h"
#include <vector>
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>
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>
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
VisualStudioVersion = 14.0.25420.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
Global
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>
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 "common\debug.h"
#include "common\KVMGFXHeader.h"
#include "common\KVMFR.h"
#include "CaptureFactory.h"
@ -53,9 +53,9 @@ bool Service::Initialize(ICapture * captureDevice)
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();
return false;
}
@ -76,8 +76,8 @@ bool Service::Initialize(ICapture * captureDevice)
return false;
}
m_header = reinterpret_cast<KVMGFXHeader *>(memory);
m_frame[0] = (uint8_t *)(((uintptr_t)memory + sizeof(KVMGFXHeader *) + 0x7F) & ~0x7F);
m_header = reinterpret_cast<KVMFRHeader *>(memory);
m_frame[0] = (uint8_t *)(((uintptr_t)memory + sizeof(KVMFRHeader *) + 0x7F) & ~0x7F);
m_frameSize = ((m_ivshmem->GetSize() - (m_frame[0] - memory)) & ~0x7F) >> 1;
m_frame[1] = m_frame[0] + m_frameSize;
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
UINT16 hostID = m_header->hostID;
ZeroMemory(m_header, sizeof(KVMGFXHeader));
memcpy(m_header->magic, KVMGFX_HEADER_MAGIC, sizeof(KVMGFX_HEADER_MAGIC));
ZeroMemory(m_header, sizeof(KVMFRHeader));
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->hostID = hostID;
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>
This program is free software; you can redistribute it and/or modify it under
@ -50,7 +50,7 @@ private:
HANDLE m_readyEvent;
ICapture * m_capture;
KVMGFXHeader * m_header;
KVMFRHeader * m_header;
uint8_t * m_frame[2];
size_t m_frameSize;
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>
This program is free software; you can redistribute it and/or modify it under

View File

@ -23,6 +23,7 @@
<Keyword>Win32Proj</Keyword>
<RootNamespace>kvmivshmemhost</RootNamespace>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
<ProjectName>looking-glass-host</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<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>
This program is free software; you can redistribute it and/or modify it under
@ -202,7 +202,7 @@ void doLicense()
{
setupConsole();
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"
"\n"
"This program is free software; you can redistribute it and / or modify it under\n"