Abstract binding configuration to bindings.[ch]
Create files bindings.[ch] to contain functions for configuring, finding, and running bindings. Use the new function `configure_binding` for binding configuration. This function adds a binding from config parameters. Export the function `modifiers_from_str` from config_directives.h. This change is made in preparation for the new bindmouse functionality.
This commit is contained in:
committed by
Michael Stapelberg
parent
da0acb2080
commit
d24d8baeb5
@ -11,6 +11,12 @@
|
||||
|
||||
#include "config_parser.h"
|
||||
|
||||
/**
|
||||
* A utility function to convert a string of modifiers to the corresponding bit
|
||||
* mask.
|
||||
*/
|
||||
uint32_t modifiers_from_str(const char *str);
|
||||
|
||||
/** The beginning of the prototype for every cfg_ function. */
|
||||
#define I3_CFG Match *current_match, struct ConfigResult *result
|
||||
|
||||
|
Reference in New Issue
Block a user