summaryrefslogtreecommitdiff
path: root/app/include/zmk/events/ble_active_profile_changed.h
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2021-01-18 00:35:56 -0500
committerPete Johanson <peter@peterjohanson.com>2021-01-20 07:06:11 -0500
commit3fe2acc2d191006fa6309191ee99b2e4e249ed08 (patch)
tree4994508fdc58daee4629c671e07e689b6332bd32 /app/include/zmk/events/ble_active_profile_changed.h
parent003db892adadb7b760f43411d7154fe60bf3556d (diff)
refactor(core): Extra event payloads to own types, refactor API.
* Make it easier to use *just* event payloads by defining the data, and then having event manager macros generate "wrapper structs" * Improve is_*/cast_* APIs to hide details of full event struct. * Create `zmk_event_t` typedef to pass to event handlers. * Bring event names inline w/ consistent `zmk_` prefix.
Diffstat (limited to 'app/include/zmk/events/ble_active_profile_changed.h')
-rw-r--r--app/include/zmk/events/ble_active_profile_changed.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/include/zmk/events/ble_active_profile_changed.h b/app/include/zmk/events/ble_active_profile_changed.h
index fa16126..4d3bb7a 100644
--- a/app/include/zmk/events/ble_active_profile_changed.h
+++ b/app/include/zmk/events/ble_active_profile_changed.h
@@ -12,10 +12,9 @@
#include <zmk/ble/profile.h>
-struct ble_active_profile_changed {
- struct zmk_event_header header;
+struct zmk_ble_active_profile_changed {
uint8_t index;
struct zmk_ble_profile *profile;
};
-ZMK_EVENT_DECLARE(ble_active_profile_changed);
+ZMK_EVENT_DECLARE(zmk_ble_active_profile_changed);