void action_arg_add_str(struct action *action, const char *key, const char *value);
-void action_arg_from_xml_node(struct action *action, char *nodename, char *content);
+void action_arg_from_xml_node(struct action *action, const char *nodename, const char *content);
bool actions_contain_toggle_keybinds(struct wl_list *action_list);
}
void
-action_arg_from_xml_node(struct action *action, char *nodename, char *content)
+action_arg_from_xml_node(struct action *action, const char *nodename, const char *content)
{
assert(action);
wl_list_append(&k->actions, &action->link);
if (key_combos[i].attribute && key_combos[i].value) {
- action_arg_add_str(action, key_combos[i].attribute, key_combos[i].value);
+ action_arg_from_xml_node(action,
+ key_combos[i].attribute, key_combos[i].value);
}
}
}
* slightly more sophisticated approach will be needed.
*/
if (current->attribute && current->value) {
- action_arg_add_str(action, current->attribute, current->value);
+ action_arg_from_xml_node(action,
+ current->attribute, current->value);
}
}
wlr_log(WLR_DEBUG, "Loaded %u merged mousebinds", count);