summaryrefslogtreecommitdiffstats
path: root/input/input.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-22 06:33:04 +0200
committerwm4 <wm4@nowhere>2012-10-12 10:10:32 +0200
commitb591688a2774f1142a56e9c2034ecd3002fdb8d8 (patch)
tree1fbc4e841dbbccd35d65c12c20f3900eec9a0784 /input/input.h
parent45b432f4c32be5cab798a0658d9461b3a40a6d94 (diff)
downloadmpv-b591688a2774f1142a56e9c2034ecd3002fdb8d8.tar.bz2
mpv-b591688a2774f1142a56e9c2034ecd3002fdb8d8.tar.xz
input: verify input.conf on loading
When input.conf is loaded, verify each command and print a warning if it's invalid or uses legacy commands. This is done for both the user's and the embedded config files. The diff is a bit noisy, because mp_input_parse_cmd() is changed to take a bstr as argument instead of a char*.
Diffstat (limited to 'input/input.h')
-rw-r--r--input/input.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/input/input.h b/input/input.h
index d3abc6f4c8..8a2bef3ac0 100644
--- a/input/input.h
+++ b/input/input.h
@@ -20,6 +20,7 @@
#define MPLAYER_INPUT_H
#include <stdbool.h>
+#include "bstr.h"
// All command IDs
enum mp_command_type {
@@ -180,7 +181,7 @@ struct mp_cmd *mp_input_get_cmd(struct input_ctx *ictx, int time,
int peek_only);
/* Parse text and return corresponding struct mp_cmd. */
-struct mp_cmd *mp_input_parse_cmd(char *str);
+struct mp_cmd *mp_input_parse_cmd(bstr str);
// After getting a command from mp_input_get_cmd you need to free it using this
// function