diff options
author | Nick Brassel <[email protected]> | 2024-02-28 21:47:37 +1100 |
---|---|---|
committer | Nick Brassel <[email protected]> | 2024-02-28 21:47:37 +1100 |
commit | 4e369d405af6bba1adce6337b2e1b1ea1788566c (patch) | |
tree | b0f020feff1809e37c9e7795d344929ff0bb290a /quantum/os_detection.h | |
parent | 4e04da397ef643f8fcf4afbe1d19f63aee1fc561 (diff) | |
parent | dd1706e468bb18dd7f7ae143de735a5d3be1bfb8 (diff) | |
download | qmk_firmware-4e369d405af6bba1adce6337b2e1b1ea1788566c.tar.gz qmk_firmware-4e369d405af6bba1adce6337b2e1b1ea1788566c.zip |
Merge branch 'develop'0.24.0
Diffstat (limited to 'quantum/os_detection.h')
-rw-r--r-- | quantum/os_detection.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/quantum/os_detection.h b/quantum/os_detection.h index 3496ea0ed2..b8cd898335 100644 --- a/quantum/os_detection.h +++ b/quantum/os_detection.h @@ -17,8 +17,9 @@ #pragma once #include <stdint.h> +#include <stdbool.h> +#include "usb_device_state.h" -#ifdef OS_DETECTION_ENABLE typedef enum { OS_UNSURE, OS_LINUX, @@ -30,10 +31,15 @@ typedef enum { void process_wlength(const uint16_t w_length); os_variant_t detected_host_os(void); void erase_wlength_data(void); +void os_detection_notify_usb_device_state_change(enum usb_device_state usb_device_state); -# if defined(SPLIT_KEYBOARD) && defined(SPLIT_DETECTED_OS_ENABLE) +void os_detection_task(void); + +bool process_detected_host_os_kb(os_variant_t os); +bool process_detected_host_os_user(os_variant_t os); + +#if defined(SPLIT_KEYBOARD) && defined(SPLIT_DETECTED_OS_ENABLE) void slave_update_detected_host_os(os_variant_t os); -# endif // defined(SPLIT_KEYBOARD) && defined(SPLIT_DETECTED_OS_ENABLE) #endif #ifdef OS_DETECTION_DEBUG_ENABLE |