mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-21 05:33:45 -04:00
config: ‘pipe’ is now optional ‘aux’ data in the key-binding struct
This allows us to add helper functions that e.g. compare bindings’ aux data in a generic way.
This commit is contained in:
parent
9814d96206
commit
e5c5cd5478
5 changed files with 116 additions and 83 deletions
15
config.h
15
config.h
|
|
@ -44,9 +44,18 @@ struct argv {
|
|||
char **args;
|
||||
};
|
||||
|
||||
struct config_binding_pipe {
|
||||
struct argv argv;
|
||||
enum binding_aux_type {
|
||||
BINDING_AUX_NONE,
|
||||
BINDING_AUX_PIPE,
|
||||
};
|
||||
|
||||
struct binding_aux {
|
||||
enum binding_aux_type type;
|
||||
bool master_copy;
|
||||
|
||||
union {
|
||||
struct argv pipe;
|
||||
};
|
||||
};
|
||||
|
||||
enum key_binding_type {
|
||||
|
|
@ -70,7 +79,7 @@ struct config_key_binding {
|
|||
} m;
|
||||
};
|
||||
|
||||
struct config_binding_pipe pipe;
|
||||
struct binding_aux aux;
|
||||
|
||||
/* For error messages in collision handling */
|
||||
const char *path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue