From 3e079e048928b4f114e1e37d6397cd63fd65797a Mon Sep 17 00:00:00 2001 From: Quantum Date: Sun, 22 May 2022 00:08:33 -0400 Subject: [PATCH] [client] main: add micDefaultState to state and params --- client/src/main.h | 125 ++++++++++++++++++++++++---------------------- 1 file changed, 66 insertions(+), 59 deletions(-) diff --git a/client/src/main.h b/client/src/main.h index 6c98e7a6..a88f2357 100644 --- a/client/src/main.h +++ b/client/src/main.h @@ -45,6 +45,12 @@ enum RunState APP_STATE_SHUTDOWN }; +enum MicDefaultState { + MIC_DEFAULT_PROMPT, + MIC_DEFAULT_ALLOW, + MIC_DEFAULT_DENY +}; + struct AppState { enum RunState state; @@ -146,69 +152,70 @@ struct AppState struct AppParams { - bool autoResize; - bool allowResize; - bool keepAspect; - bool forceAspect; - bool dontUpscale; - bool intUpscale; - bool shrinkOnUpscale; - bool borderless; - bool fullscreen; - bool maximize; - bool minimizeOnFocusLoss; - bool center; - int x, y; - unsigned int w, h; - int fpsMin; - LG_RendererRotate winRotate; - bool useSpice; - bool useSpiceInput; - bool useSpiceClipboard; - bool useSpiceAudio; - const char * spiceHost; - unsigned int spicePort; - bool clipboardToVM; - bool clipboardToLocal; - bool scaleMouseInput; - bool hideMouse; - bool ignoreQuit; - bool noScreensaver; - bool autoScreensaver; - bool grabKeyboard; - bool grabKeyboardOnFocus; - int escapeKey; - bool ignoreWindowsKeys; - bool releaseKeysOnFocusLoss; - bool showAlerts; - bool captureOnStart; - bool quickSplash; - bool alwaysShowCursor; - uint64_t helpMenuDelayUs; - const char * uiFont; - int uiSize; - bool jitRender; + bool autoResize; + bool allowResize; + bool keepAspect; + bool forceAspect; + bool dontUpscale; + bool intUpscale; + bool shrinkOnUpscale; + bool borderless; + bool fullscreen; + bool maximize; + bool minimizeOnFocusLoss; + bool center; + int x, y; + unsigned int w, h; + int fpsMin; + LG_RendererRotate winRotate; + bool useSpice; + bool useSpiceInput; + bool useSpiceClipboard; + bool useSpiceAudio; + const char * spiceHost; + unsigned int spicePort; + bool clipboardToVM; + bool clipboardToLocal; + bool scaleMouseInput; + bool hideMouse; + bool ignoreQuit; + bool noScreensaver; + bool autoScreensaver; + bool grabKeyboard; + bool grabKeyboardOnFocus; + int escapeKey; + bool ignoreWindowsKeys; + bool releaseKeysOnFocusLoss; + bool showAlerts; + bool captureOnStart; + bool quickSplash; + bool alwaysShowCursor; + uint64_t helpMenuDelayUs; + const char * uiFont; + int uiSize; + bool jitRender; - unsigned int cursorPollInterval; - unsigned int framePollInterval; - bool allowDMA; + unsigned int cursorPollInterval; + unsigned int framePollInterval; + bool allowDMA; - bool forceRenderer; - unsigned int forceRendererIndex; + bool forceRenderer; + unsigned int forceRendererIndex; - const char * windowTitle; - bool mouseRedraw; - int mouseSens; - bool mouseSmoothing; - bool rawMouse; - bool autoCapture; - bool captureInputOnly; - bool showCursorDot; + const char * windowTitle; + bool mouseRedraw; + int mouseSens; + bool mouseSmoothing; + bool rawMouse; + bool autoCapture; + bool captureInputOnly; + bool showCursorDot; - int audioPeriodSize; - int audioBufferLatency; - bool micAlwaysAllow; - bool micShowIndicator; + int audioPeriodSize; + int audioBufferLatency; + bool micAlwaysAllow; + bool micShowIndicator; + enum MicDefaultState micDefaultState; }; struct CBRequest