forked from kofal.net/zmk
refactor: Move to zmk_hid_indicators_t type.
This commit is contained in:
committed by
Pete Johanson
parent
d9bb0d7d0e
commit
817ce8764f
@@ -10,7 +10,7 @@
|
||||
#include <zmk/event_manager.h>
|
||||
|
||||
struct zmk_hid_indicators_changed {
|
||||
zmk_hid_indicators indicators;
|
||||
zmk_hid_indicators_t indicators;
|
||||
};
|
||||
|
||||
ZMK_EVENT_DECLARE(zmk_hid_indicators_changed);
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
#include <zmk/hid.h>
|
||||
#include <zmk/hid_indicators_types.h>
|
||||
|
||||
zmk_hid_indicators zmk_hid_indicators_get_current_profile(void);
|
||||
zmk_hid_indicators zmk_hid_indicators_get_profile(struct zmk_endpoint_instance endpoint);
|
||||
void zmk_hid_indicators_set_profile(zmk_hid_indicators indicators,
|
||||
zmk_hid_indicators_t zmk_hid_indicators_get_current_profile(void);
|
||||
zmk_hid_indicators_t zmk_hid_indicators_get_profile(struct zmk_endpoint_instance endpoint);
|
||||
void zmk_hid_indicators_set_profile(zmk_hid_indicators_t indicators,
|
||||
struct zmk_endpoint_instance endpoint);
|
||||
|
||||
void zmk_hid_indicators_process_report(struct zmk_hid_led_report_body *report,
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
typedef uint8_t zmk_hid_indicators;
|
||||
typedef uint8_t zmk_hid_indicators_t;
|
||||
|
||||
@@ -13,6 +13,6 @@ int zmk_split_bt_invoke_behavior(uint8_t source, struct zmk_behavior_binding *bi
|
||||
|
||||
#if IS_ENABLED(CONFIG_ZMK_SPLIT_PERIPHERAL_HID_INDICATORS)
|
||||
|
||||
int zmk_split_bt_update_hid_indicator(zmk_hid_indicators indicators);
|
||||
int zmk_split_bt_update_hid_indicator(zmk_hid_indicators_t indicators);
|
||||
|
||||
#endif // IS_ENABLED(CONFIG_ZMK_SPLIT_PERIPHERAL_HID_INDICATORS)
|
||||
|
||||
Reference in New Issue
Block a user