make parse_modifiers public

This commit is contained in:
bi4k8 2021-12-01 02:28:41 +00:00 committed by ARDiDo
parent ef49d2c843
commit c34a2fc976
2 changed files with 8 additions and 1 deletions

View file

@ -20,4 +20,11 @@ struct keybind {
*/ */
struct keybind *keybind_create(const char *keybind); struct keybind *keybind_create(const char *keybind);
/**
* parse_modifier - parse a string containing a single modifier name (e.g. "S")
* into the represented modifier value. returns 0 for invalid modifier names.
* @symname: modifier name
*/
uint32_t parse_modifier(const char *symname);
#endif /* __LABWC_KEYBIND_H */ #endif /* __LABWC_KEYBIND_H */

View file

@ -8,7 +8,7 @@
#include "config/keybind.h" #include "config/keybind.h"
#include "config/rcxml.h" #include "config/rcxml.h"
static uint32_t uint32_t
parse_modifier(const char *symname) parse_modifier(const char *symname)
{ {
if (!strcmp(symname, "S")) { if (!strcmp(symname, "S")) {