diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-01-06 16:59:54 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-01-06 16:59:54 +0100 |
| commit | d10d4d4900275a5ffe3aa362c89df67041ac2341 (patch) | |
| tree | 197d392dce35d14db34f903f45a086722ee6fbdc /include/util.h | |
| parent | bf574da2b7e0809a0ce734d885244fb416e991f6 (diff) | |
Add function for getting list of modifier names.
Get an array of modifier names from modifier masks.
Diffstat (limited to 'include/util.h')
| -rw-r--r-- | include/util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h index 4bbb64c8..dc47e343 100644 --- a/include/util.h +++ b/include/util.h @@ -29,4 +29,11 @@ uint32_t get_modifier_mask_by_name(const char *name); */ const char *get_modifier_name_by_mask(uint32_t modifier); +/** + * Get an array of modifier names from modifier_masks + * + * Populates the names array and return the number of names added. + */ +int get_modifier_names(const char **names, uint32_t modifier_masks); + #endif |
