};
/**
- * 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 */
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];
return;
rstrip(nodename, ".keybind.keyboard");
if (!strcmp(nodename, "key"))
- current_keybind = keybind_add(content);
+ current_keybind = keybind_create(content);
/* We expect <keybind key=""> to come first */
BUG_ON(!current_keybind);
if (!strcmp(nodename, "name.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);