summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-18 16:48:13 +0200
committerwm4 <wm4@nowhere>2014-04-18 16:48:13 +0200
commitb87191d176357f171b1dda51366c962c13faa28e (patch)
tree016adfa773b1ff132ee2c857d2f3074abd1919cb /input
parentecb4c08ee2f0f87cc2a3afce1435ea84956936f0 (diff)
downloadmpv-b87191d176357f171b1dda51366c962c13faa28e.tar.bz2
mpv-b87191d176357f171b1dda51366c962c13faa28e.tar.xz
input: move a function
Diffstat (limited to 'input')
-rw-r--r--input/input.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/input/input.c b/input/input.c
index 0d8118d8fe..f3233c4d06 100644
--- a/input/input.c
+++ b/input/input.c
@@ -348,17 +348,6 @@ static mp_cmd_t *handle_test(struct input_ctx *ictx, int code)
return res;
}
-static bool bind_matches_key(struct cmd_bind *bind, int num_keys, const int *keys)
-{
- if (bind->num_keys != num_keys)
- return false;
- for (int i = 0; i < num_keys; i++) {
- if (bind->keys[i] != keys[i])
- return false;
- }
- return true;
-}
-
static struct cmd_bind_section *get_bind_section(struct input_ctx *ictx,
bstr section)
{
@@ -1323,6 +1312,17 @@ void mp_input_define_section(struct input_ctx *ictx, char *name, char *location,
input_unlock(ictx);
}
+static bool bind_matches_key(struct cmd_bind *bind, int num_keys, const int *keys)
+{
+ if (bind->num_keys != num_keys)
+ return false;
+ for (int i = 0; i < num_keys; i++) {
+ if (bind->keys[i] != keys[i])
+ return false;
+ }
+ return true;
+}
+
static void bind_keys(struct input_ctx *ictx, bool builtin, bstr section,
const int *keys, int num_keys, bstr command,
const char *loc)