version 1.98, 2016/10/09 07:58:35 |
version 1.99, 2016/10/10 21:51:39 |
|
|
* Set an option. |
* Set an option. |
*/ |
*/ |
|
|
enum cmd_retval cmd_set_option_exec(struct cmd *, struct cmd_q *); |
static enum cmd_retval cmd_set_option_exec(struct cmd *, struct cmd_q *); |
|
|
enum cmd_retval cmd_set_option_user(struct cmd *, struct cmd_q *, |
static enum cmd_retval cmd_set_option_user(struct cmd *, struct cmd_q *, |
const char *, const char *); |
const char *, const char *); |
|
|
int cmd_set_option_unset(struct cmd *, struct cmd_q *, |
static int cmd_set_option_unset(struct cmd *, struct cmd_q *, |
const struct options_table_entry *, struct options *, |
const struct options_table_entry *, struct options *, |
const char *); |
const char *); |
int cmd_set_option_set(struct cmd *, struct cmd_q *, |
static int cmd_set_option_set(struct cmd *, struct cmd_q *, |
const struct options_table_entry *, struct options *, |
const struct options_table_entry *, struct options *, |
const char *); |
const char *); |
|
|
struct options_entry *cmd_set_option_string(struct cmd *, struct cmd_q *, |
static struct options_entry *cmd_set_option_string(struct cmd *, struct cmd_q *, |
const struct options_table_entry *, struct options *, |
const struct options_table_entry *, struct options *, |
const char *); |
const char *); |
struct options_entry *cmd_set_option_number(struct cmd *, struct cmd_q *, |
static struct options_entry *cmd_set_option_number(struct cmd *, struct cmd_q *, |
const struct options_table_entry *, struct options *, |
const struct options_table_entry *, struct options *, |
const char *); |
const char *); |
struct options_entry *cmd_set_option_key(struct cmd *, struct cmd_q *, |
static struct options_entry *cmd_set_option_key(struct cmd *, struct cmd_q *, |
const struct options_table_entry *, struct options *, |
const struct options_table_entry *, struct options *, |
const char *); |
const char *); |
struct options_entry *cmd_set_option_colour(struct cmd *, struct cmd_q *, |
static struct options_entry *cmd_set_option_colour(struct cmd *, struct cmd_q *, |
const struct options_table_entry *, struct options *, |
const struct options_table_entry *, struct options *, |
const char *); |
const char *); |
struct options_entry *cmd_set_option_attributes(struct cmd *, struct cmd_q *, |
static struct options_entry *cmd_set_option_attributes(struct cmd *, |
|
struct cmd_q *, const struct options_table_entry *, |
|
struct options *, const char *); |
|
static struct options_entry *cmd_set_option_flag(struct cmd *, struct cmd_q *, |
const struct options_table_entry *, struct options *, |
const struct options_table_entry *, struct options *, |
const char *); |
const char *); |
struct options_entry *cmd_set_option_flag(struct cmd *, struct cmd_q *, |
static struct options_entry *cmd_set_option_choice(struct cmd *, struct cmd_q *, |
const struct options_table_entry *, struct options *, |
const struct options_table_entry *, struct options *, |
const char *); |
const char *); |
struct options_entry *cmd_set_option_choice(struct cmd *, struct cmd_q *, |
static struct options_entry *cmd_set_option_style(struct cmd *, struct cmd_q *, |
const struct options_table_entry *, struct options *, |
const struct options_table_entry *, struct options *, |
const char *); |
const char *); |
struct options_entry *cmd_set_option_style(struct cmd *, struct cmd_q *, |
|
const struct options_table_entry *, struct options *, |
|
const char *); |
|
|
|
const struct cmd_entry cmd_set_option_entry = { |
const struct cmd_entry cmd_set_option_entry = { |
.name = "set-option", |
.name = "set-option", |
|
|
.exec = cmd_set_option_exec |
.exec = cmd_set_option_exec |
}; |
}; |
|
|
enum cmd_retval |
static enum cmd_retval |
cmd_set_option_exec(struct cmd *self, struct cmd_q *cmdq) |
cmd_set_option_exec(struct cmd *self, struct cmd_q *cmdq) |
{ |
{ |
struct args *args = self->args; |
struct args *args = self->args; |
|
|
} |
} |
|
|
/* Set user option. */ |
/* Set user option. */ |
enum cmd_retval |
static enum cmd_retval |
cmd_set_option_user(struct cmd *self, struct cmd_q *cmdq, const char *optstr, |
cmd_set_option_user(struct cmd *self, struct cmd_q *cmdq, const char *optstr, |
const char *valstr) |
const char *valstr) |
{ |
{ |
|
|
} |
} |
|
|
/* Unset an option. */ |
/* Unset an option. */ |
int |
static int |
cmd_set_option_unset(struct cmd *self, struct cmd_q *cmdq, |
cmd_set_option_unset(struct cmd *self, struct cmd_q *cmdq, |
const struct options_table_entry *oe, struct options *oo, |
const struct options_table_entry *oe, struct options *oo, |
const char *value) |
const char *value) |
|
|
} |
} |
|
|
/* Set an option. */ |
/* Set an option. */ |
int |
static int |
cmd_set_option_set(struct cmd *self, struct cmd_q *cmdq, |
cmd_set_option_set(struct cmd *self, struct cmd_q *cmdq, |
const struct options_table_entry *oe, struct options *oo, |
const struct options_table_entry *oe, struct options *oo, |
const char *value) |
const char *value) |
|
|
} |
} |
|
|
/* Set a string option. */ |
/* Set a string option. */ |
struct options_entry * |
static struct options_entry * |
cmd_set_option_string(struct cmd *self, __unused struct cmd_q *cmdq, |
cmd_set_option_string(struct cmd *self, __unused struct cmd_q *cmdq, |
const struct options_table_entry *oe, struct options *oo, |
const struct options_table_entry *oe, struct options *oo, |
const char *value) |
const char *value) |
|
|
} |
} |
|
|
/* Set a number option. */ |
/* Set a number option. */ |
struct options_entry * |
static struct options_entry * |
cmd_set_option_number(__unused struct cmd *self, struct cmd_q *cmdq, |
cmd_set_option_number(__unused struct cmd *self, struct cmd_q *cmdq, |
const struct options_table_entry *oe, struct options *oo, |
const struct options_table_entry *oe, struct options *oo, |
const char *value) |
const char *value) |
|
|
} |
} |
|
|
/* Set a key option. */ |
/* Set a key option. */ |
struct options_entry * |
static struct options_entry * |
cmd_set_option_key(__unused struct cmd *self, struct cmd_q *cmdq, |
cmd_set_option_key(__unused struct cmd *self, struct cmd_q *cmdq, |
const struct options_table_entry *oe, struct options *oo, |
const struct options_table_entry *oe, struct options *oo, |
const char *value) |
const char *value) |
|
|
} |
} |
|
|
/* Set a colour option. */ |
/* Set a colour option. */ |
struct options_entry * |
static struct options_entry * |
cmd_set_option_colour(__unused struct cmd *self, struct cmd_q *cmdq, |
cmd_set_option_colour(__unused struct cmd *self, struct cmd_q *cmdq, |
const struct options_table_entry *oe, struct options *oo, |
const struct options_table_entry *oe, struct options *oo, |
const char *value) |
const char *value) |
|
|
} |
} |
|
|
/* Set an attributes option. */ |
/* Set an attributes option. */ |
struct options_entry * |
static struct options_entry * |
cmd_set_option_attributes(__unused struct cmd *self, struct cmd_q *cmdq, |
cmd_set_option_attributes(__unused struct cmd *self, struct cmd_q *cmdq, |
const struct options_table_entry *oe, struct options *oo, |
const struct options_table_entry *oe, struct options *oo, |
const char *value) |
const char *value) |
|
|
} |
} |
|
|
/* Set a flag option. */ |
/* Set a flag option. */ |
struct options_entry * |
static struct options_entry * |
cmd_set_option_flag(__unused struct cmd *self, struct cmd_q *cmdq, |
cmd_set_option_flag(__unused struct cmd *self, struct cmd_q *cmdq, |
const struct options_table_entry *oe, struct options *oo, |
const struct options_table_entry *oe, struct options *oo, |
const char *value) |
const char *value) |
|
|
} |
} |
|
|
/* Set a choice option. */ |
/* Set a choice option. */ |
struct options_entry * |
static struct options_entry * |
cmd_set_option_choice(__unused struct cmd *self, struct cmd_q *cmdq, |
cmd_set_option_choice(__unused struct cmd *self, struct cmd_q *cmdq, |
const struct options_table_entry *oe, struct options *oo, |
const struct options_table_entry *oe, struct options *oo, |
const char *value) |
const char *value) |
|
|
} |
} |
|
|
/* Set a style option. */ |
/* Set a style option. */ |
struct options_entry * |
static struct options_entry * |
cmd_set_option_style(struct cmd *self, struct cmd_q *cmdq, |
cmd_set_option_style(struct cmd *self, struct cmd_q *cmdq, |
const struct options_table_entry *oe, struct options *oo, |
const struct options_table_entry *oe, struct options *oo, |
const char *value) |
const char *value) |