From b2504bdf9aab4f186ebcf9223fde6ef24760f0ff Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Wed, 2 Sep 2020 21:05:28 +0100 Subject: [PATCH] keybind: s/add/create/ --- include/config/keybind.h | 4 ++-- src/config/keybind.c | 2 +- src/config/rcxml.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/config/keybind.h b/include/config/keybind.h index 8742ca48..136f2e71 100644 --- a/include/config/keybind.h +++ b/include/config/keybind.h @@ -14,9 +14,9 @@ struct keybind { }; /** - * keybind_add - parse keybind and add to linked list + * keybind_create - parse keybind and add to linked list * @keybind: key combination */ -struct keybind *keybind_add(const char *keybind); +struct keybind *keybind_create(const char *keybind); #endif /* __LABWC_KEYBIND_H */ diff --git a/src/config/keybind.c b/src/config/keybind.c index cac1047e..06c536b0 100644 --- a/src/config/keybind.c +++ b/src/config/keybind.c @@ -22,7 +22,7 @@ static uint32_t parse_modifier(const char *symname) return 0; } -struct keybind *keybind_add(const char *keybind) +struct keybind *keybind_create(const char *keybind) { struct keybind *k = calloc(1, sizeof(struct keybind)); xkb_keysym_t keysyms[32]; diff --git a/src/config/rcxml.c b/src/config/rcxml.c index f447076d..03e67e67 100644 --- a/src/config/rcxml.c +++ b/src/config/rcxml.c @@ -44,7 +44,7 @@ static void fill_keybind(char *nodename, char *content) return; rstrip(nodename, ".keybind.keyboard"); if (!strcmp(nodename, "key")) - current_keybind = keybind_add(content); + current_keybind = keybind_create(content); /* We expect to come first */ BUG_ON(!current_keybind); if (!strcmp(nodename, "name.action")) { @@ -223,7 +223,7 @@ static void bind(const char *binding, const char *action) { if (!binding || !action) return; - struct keybind *k = keybind_add(binding); + struct keybind *k = keybind_create(binding); if (k) k->action = strdup(action); info("binding %s: %s", binding, action);