]> git.mdlowis.com Git - proto/labwc.git/commitdiff
make parse_modifiers public
authorbi4k8 <bi4k8@github>
Wed, 1 Dec 2021 02:28:41 +0000 (02:28 +0000)
committerARDiDo <90479315+ARDiDo@users.noreply.github.com>
Wed, 1 Dec 2021 20:11:21 +0000 (15:11 -0500)
include/config/keybind.h
src/config/keybind.c

index 62d9818b8d5d05e01cc6d71c21fb4af798e24f8a..fcb4bc83d6656d5eb42313f5ff3f0f0d29695a56 100644 (file)
@@ -20,4 +20,11 @@ struct 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 */
index b69a8fac64f0a1c9b02681a1027f2398bba6a4b3..3ef925dae1675fdbb163a8c77bca06b70ef3e4fd 100644 (file)
@@ -8,7 +8,7 @@
 #include "config/keybind.h"
 #include "config/rcxml.h"
 
-static uint32_t
+uint32_t
 parse_modifier(const char *symname)
 {
        if (!strcmp(symname, "S")) {