summaryrefslogtreecommitdiff
path: root/quantum/os_detection.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/os_detection.h')
-rw-r--r--quantum/os_detection.h12
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