diff options
author | ngs-ch <125195794+ngs-ch@users.noreply.github.com> | 2023-04-04 07:48:51 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-04 08:48:51 +1000 |
commit | ccda5d2d2f0b2e71e16d72636622743a68757b50 (patch) | |
tree | 955ad43e25268dbe452514a92904be6af32fc33f /quantum/split_common/transport.h | |
parent | d82c6648f50d72820effce6077084c8a2dce1b18 (diff) |
Make "detected_host_os()" available on the SLAVE side of the split keyboard (#19854)
Co-authored-by: ngs.ch <ngs.ch>
Co-authored-by: Drashna Jaelre <drashna@drashna.net>
Diffstat (limited to 'quantum/split_common/transport.h')
-rw-r--r-- | quantum/split_common/transport.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/quantum/split_common/transport.h b/quantum/split_common/transport.h index 13b1e56814..6f8985cb07 100644 --- a/quantum/split_common/transport.h +++ b/quantum/split_common/transport.h @@ -142,6 +142,10 @@ typedef struct _rpc_sync_info_t { } rpc_sync_info_t; #endif // defined(SPLIT_TRANSACTION_IDS_KB) || defined(SPLIT_TRANSACTION_IDS_USER) +#if defined(OS_DETECTION_ENABLE) && defined(SPLIT_DETECTED_OS_ENABLE) +# include "os_detection.h" +#endif // defined(OS_DETECTION_ENABLE) && defined(SPLIT_DETECTED_OS_ENABLE) + typedef struct _split_shared_memory_t { #ifdef USE_I2C int8_t transaction_id; @@ -222,6 +226,10 @@ typedef struct _split_shared_memory_t { uint8_t rpc_m2s_buffer[RPC_M2S_BUFFER_SIZE]; uint8_t rpc_s2m_buffer[RPC_S2M_BUFFER_SIZE]; #endif // defined(SPLIT_TRANSACTION_IDS_KB) || defined(SPLIT_TRANSACTION_IDS_USER) + +#if defined(OS_DETECTION_ENABLE) && defined(SPLIT_DETECTED_OS_ENABLE) + os_variant_t detected_os; +#endif // defined(OS_DETECTION_ENABLE) && defined(SPLIT_DETECTED_OS_ENABLE) } split_shared_memory_t; extern split_shared_memory_t *const split_shmem; |