mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-21 23:02:05 +00:00
[idd] implement config reload
This commit is contained in:
@@ -32,6 +32,8 @@ using namespace Microsoft::WRL;
|
||||
using namespace Microsoft::WRL::Wrappers;
|
||||
using namespace Microsoft::WRL::Wrappers::HandleTraits;
|
||||
|
||||
class CIndirectDeviceContext;
|
||||
|
||||
class CPipeServer
|
||||
{
|
||||
private:
|
||||
@@ -43,6 +45,9 @@ class CPipeServer
|
||||
bool m_running = false;
|
||||
bool m_connected = false;
|
||||
|
||||
SRWLOCK m_deviceContextLock = SRWLOCK_INIT;
|
||||
CIndirectDeviceContext* m_deviceContext = nullptr;
|
||||
|
||||
void _DeInit();
|
||||
|
||||
static DWORD WINAPI _pipeThread(LPVOID lpParam) { ((CPipeServer*)lpParam)->Thread(); return 0; }
|
||||
@@ -58,9 +63,11 @@ class CPipeServer
|
||||
bool Init();
|
||||
void DeInit();
|
||||
|
||||
void SetDeviceContext(CIndirectDeviceContext* context);
|
||||
|
||||
void SetCursorPos(uint32_t x, uint32_t y);
|
||||
void SetDisplayMode(uint32_t width, uint32_t height, uint32_t refresh);
|
||||
void SetGPUStatus(bool software);
|
||||
};
|
||||
|
||||
extern CPipeServer g_pipe;
|
||||
extern CPipeServer g_pipe;
|
||||
|
||||
Reference in New Issue
Block a user