version 1.26, 2016/09/12 15:40:58 |
version 1.27, 2016/10/10 21:51:39 |
|
|
* Bind a key to a command, this recurses through cmd_*. |
* Bind a key to a command, this recurses through cmd_*. |
*/ |
*/ |
|
|
enum cmd_retval cmd_bind_key_exec(struct cmd *, struct cmd_q *); |
static enum cmd_retval cmd_bind_key_exec(struct cmd *, struct cmd_q *); |
|
|
enum cmd_retval cmd_bind_key_mode_table(struct cmd *, struct cmd_q *, |
static enum cmd_retval cmd_bind_key_mode_table(struct cmd *, struct cmd_q *, |
key_code); |
key_code); |
|
|
const struct cmd_entry cmd_bind_key_entry = { |
const struct cmd_entry cmd_bind_key_entry = { |
.name = "bind-key", |
.name = "bind-key", |
|
|
.exec = cmd_bind_key_exec |
.exec = cmd_bind_key_exec |
}; |
}; |
|
|
enum cmd_retval |
static enum cmd_retval |
cmd_bind_key_exec(struct cmd *self, struct cmd_q *cmdq) |
cmd_bind_key_exec(struct cmd *self, struct cmd_q *cmdq) |
{ |
{ |
struct args *args = self->args; |
struct args *args = self->args; |
|
|
return (CMD_RETURN_NORMAL); |
return (CMD_RETURN_NORMAL); |
} |
} |
|
|
enum cmd_retval |
static enum cmd_retval |
cmd_bind_key_mode_table(struct cmd *self, struct cmd_q *cmdq, key_code key) |
cmd_bind_key_mode_table(struct cmd *self, struct cmd_q *cmdq, key_code key) |
{ |
{ |
struct args *args = self->args; |
struct args *args = self->args; |