mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
make parse_modifiers public
This commit is contained in:
parent
ef49d2c843
commit
c34a2fc976
2 changed files with 8 additions and 1 deletions
|
|
@ -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 */
|
||||||
|
|
|
||||||
|
|
@ -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")) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue