aboutsummaryrefslogtreecommitdiffstats
path: root/dome_key_map.h
diff options
context:
space:
mode:
authorTeddy Wing2018-08-28 07:16:46 +0200
committerTeddy Wing2018-08-28 07:16:46 +0200
commit98529aa0bc8d7188cb1ed577e06a576e4096319c (patch)
tree5d942e4786b8be0cc0ff0b1719c0f800d3dcb3f6 /dome_key_map.h
parentd610aab64b2505b2ee7cd37be5b3d1b8097c3a64 (diff)
downloaddome-key-map-98529aa0bc8d7188cb1ed577e06a576e4096319c.tar.bz2
cbindgen.toml: Prefix enum variants with enum name
For better namespacing and local context information. Thank goodness 'cbindgen' supports this.
Diffstat (limited to 'dome_key_map.h')
-rw-r--r--dome_key_map.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/dome_key_map.h b/dome_key_map.h
index 647c6e5..6066da0 100644
--- a/dome_key_map.h
+++ b/dome_key_map.h
@@ -7,14 +7,14 @@
#include <stdbool.h>
typedef enum {
- Play,
- Up,
- Down,
+ HeadphoneButton_Play,
+ HeadphoneButton_Up,
+ HeadphoneButton_Down,
} HeadphoneButton;
typedef enum {
- Map,
- Command,
+ MapKind_Map,
+ MapKind_Command,
} MapKind;
typedef struct {