diff options
author | koekeishiya <aasvi93@hotmail.com> | 2023-05-01 18:27:07 +0200 |
---|---|---|
committer | koekeishiya <aasvi93@hotmail.com> | 2023-05-01 18:27:07 +0200 |
commit | 18dd6a0418ddb8a03e91aed5d6e465e519d95ebd (patch) | |
tree | 735b72d52c8e5a076badbc3db81850a691791c58 /src/hotkey.h | |
parent | b659b90576cf88100b52ca6ab9270d84af7e579b (diff) | |
download | skhd-18dd6a0418ddb8a03e91aed5d6e465e519d95ebd.tar.gz skhd-18dd6a0418ddb8a03e91aed5d6e465e519d95ebd.zip |
cleanup, add service commands
Diffstat (limited to 'src/hotkey.h')
-rw-r--r-- | src/hotkey.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/hotkey.h b/src/hotkey.h index 6b6e92a..78aba3f 100644 --- a/src/hotkey.h +++ b/src/hotkey.h @@ -78,29 +78,25 @@ struct hotkey struct mode **mode_list; }; -#define internal static - -internal inline void +static inline void add_flags(struct hotkey *hotkey, uint32_t flag) { hotkey->flags |= flag; } -internal inline bool +static inline bool has_flags(struct hotkey *hotkey, uint32_t flag) { bool result = hotkey->flags & flag; return result; } -internal inline void +static inline void clear_flags(struct hotkey *hotkey, uint32_t flag) { hotkey->flags &= ~flag; } -#undef internal - bool compare_string(char *a, char *b); unsigned long hash_string(char *key); |