diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-13 16:13:54 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-13 16:13:54 +0000 |
commit | 003ffcfe794258dc92fad2a175e82bb98b90dc33 (patch) | |
tree | 06f5c554134df010e86ece98f173b9ce9b3bee06 /input | |
parent | 22f97dcd49c7ca1e8cdc8b3052929edd442c727b (diff) | |
download | mpv-003ffcfe794258dc92fad2a175e82bb98b90dc33.tar.bz2 mpv-003ffcfe794258dc92fad2a175e82bb98b90dc33.tar.xz |
Make several mapping tables related to input processing const.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25737 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'input')
-rw-r--r-- | input/input.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/input/input.c b/input/input.c index 3fd1e5a011..b8a352d275 100644 --- a/input/input.c +++ b/input/input.c @@ -50,7 +50,7 @@ /// For the args, the first field is the type (actually int, float or string), the second /// is the default value wich is used for optional arguments -static mp_cmd_t mp_cmds[] = { +static const mp_cmd_t mp_cmds[] = { #ifdef USE_RADIO { MP_CMD_RADIO_STEP_CHANNEL, "radio_step_channel", 1, { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }}, { MP_CMD_RADIO_SET_CHANNEL, "radio_set_channel", 1, { { MP_CMD_ARG_STRING, {0}}, {-1,{0}} }}, @@ -193,7 +193,7 @@ static mp_cmd_t mp_cmds[] = { /// The names of the keys as used in input.conf /// If you add some new keys, you also need to add them here -static mp_key_name_t key_names[] = { +static const mp_key_name_t key_names[] = { { ' ', "SPACE" }, { '#', "SHARP" }, { KEY_ENTER, "ENTER" }, @@ -334,7 +334,7 @@ static mp_key_name_t key_names[] = { // The first arg is a null terminated array of key codes. // The second is the command -static mp_cmd_bind_t def_cmd_binds[] = { +static const mp_cmd_bind_t def_cmd_binds[] = { { { MOUSE_BTN3, 0 }, "seek 10" }, { { MOUSE_BTN4, 0 }, "seek -10" }, @@ -475,7 +475,7 @@ static mp_cmd_bind_t def_cmd_binds[] = { #ifdef HAVE_NEW_GUI -static mp_cmd_bind_t gui_def_cmd_binds[] = { +static const mp_cmd_bind_t gui_def_cmd_binds[] = { { { 'l', 0 }, "gui_loadfile" }, { { 't', 0 }, "gui_loadsubtitle" }, |