input: rename weirdly named function

This commit is contained in:
wm4 2018-05-01 03:36:39 +02:00 committed by Jan Ekström
parent 407f5b407a
commit 88498bcc92
3 changed files with 5 additions and 4 deletions

View File

@ -316,7 +316,7 @@ error:
return NULL;
}
mp_cmd_t *mp_input_parse_cmd_(struct mp_log *log, bstr str, const char *loc)
mp_cmd_t *mp_input_parse_cmd_str(struct mp_log *log, bstr str, const char *loc)
{
void *tmp = talloc_new(NULL);
bstr original = str;

View File

@ -124,7 +124,8 @@ void mp_print_cmd_list(struct mp_log *out);
// Parse text and return corresponding struct mp_cmd.
// The location parameter is for error messages.
struct mp_cmd *mp_input_parse_cmd_(struct mp_log *log, bstr str, const char *loc);
struct mp_cmd *mp_input_parse_cmd_str(struct mp_log *log, bstr str,
const char *loc);
// Similar to mp_input_parse_cmd(), but takes a list of strings instead.
// Also, MP_ON_OSD_AUTO | MP_EXPAND_PROPERTIES are not set by default.

View File

@ -1450,7 +1450,7 @@ bool mp_input_use_media_keys(struct input_ctx *ictx)
struct mp_cmd *mp_input_parse_cmd(struct input_ctx *ictx, bstr str,
const char *location)
{
return mp_input_parse_cmd_(ictx->log, str, location);
return mp_input_parse_cmd_str(ictx->log, str, location);
}
void mp_input_run_cmd(struct input_ctx *ictx, const char **cmd)
@ -1603,7 +1603,7 @@ void mp_input_src_feed_cmd_text(struct mp_input_src *src, char *buf, size_t len)
if (term) {
bstr s = {in->cmd_buffer, in->cmd_buffer_size};
s = bstr_strip(s);
struct mp_cmd *cmd= mp_input_parse_cmd_(src->log, s, "<>");
struct mp_cmd *cmd = mp_input_parse_cmd_str(src->log, s, "<>");
if (cmd)
mp_input_queue_cmd(src->input_ctx, cmd);
in->cmd_buffer_size = 0;