mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 04:44:32 +01:00
Mark cfg_fields m_option_t array as const.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30999 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d2d509dc39
commit
637dd3d064
@ -61,7 +61,7 @@ static struct menu_priv_s cfg_dflt = {
|
||||
|
||||
#define ST_OFF(m) M_ST_OFF(struct menu_priv_s,m)
|
||||
|
||||
static m_option_t cfg_fields[] = {
|
||||
static const m_option_t cfg_fields[] = {
|
||||
MENU_LIST_PRIV_FIELDS,
|
||||
{ "title", ST_OFF (title), CONF_TYPE_STRING, 0, 0, 0, NULL },
|
||||
{ "auto-close", ST_OFF (auto_close), CONF_TYPE_FLAG, 0, 0, 1, NULL },
|
||||
|
@ -59,7 +59,7 @@ static struct menu_priv_s cfg_dflt = {
|
||||
MENU_LIST_PRIV_DFLT,
|
||||
};
|
||||
|
||||
static m_option_t cfg_fields[] = {
|
||||
static const m_option_t cfg_fields[] = {
|
||||
MENU_LIST_PRIV_FIELDS,
|
||||
{ "title",M_ST_OFF(struct menu_priv_s,p.title), CONF_TYPE_STRING, 0, 0, 0, NULL },
|
||||
{ NULL, NULL, NULL, 0,0,0,NULL }
|
||||
|
@ -110,7 +110,7 @@ static struct menu_priv_s cfg_dflt = {
|
||||
|
||||
#define ST_OFF(m) M_ST_OFF(struct menu_priv_s,m)
|
||||
|
||||
static m_option_t cfg_fields[] = {
|
||||
static const m_option_t cfg_fields[] = {
|
||||
{ "prompt", ST_OFF(mp_prompt), CONF_TYPE_STRING, M_OPT_MIN, 1, 0, NULL },
|
||||
{ "child-prompt", ST_OFF(child_prompt), CONF_TYPE_STRING, M_OPT_MIN, 1, 0, NULL },
|
||||
{ "buffer-lines", ST_OFF(buf_lines), CONF_TYPE_INT, M_OPT_MIN, 5, 0, NULL },
|
||||
|
@ -64,7 +64,7 @@ struct menu_priv_s {
|
||||
#define ST_OFF(m) M_ST_OFF(struct menu_priv_s, m)
|
||||
#define mpriv (menu->priv)
|
||||
|
||||
static m_option_t cfg_fields[] = {
|
||||
static const m_option_t cfg_fields[] = {
|
||||
MENU_LIST_PRIV_FIELDS,
|
||||
{ "title", ST_OFF(title), CONF_TYPE_STRING, 0, 0, 0, NULL },
|
||||
{ "auto-close", ST_OFF(auto_close), CONF_TYPE_FLAG, 0, 0, 1, NULL },
|
||||
|
@ -81,7 +81,7 @@ static struct menu_priv_s cfg_dflt = {
|
||||
|
||||
#define ST_OFF(m) M_ST_OFF(struct menu_priv_s,m)
|
||||
|
||||
static m_option_t cfg_fields[] = {
|
||||
static const m_option_t cfg_fields[] = {
|
||||
MENU_LIST_PRIV_FIELDS,
|
||||
{ "path", ST_OFF(path), CONF_TYPE_STRING, 0, 0, 0, NULL },
|
||||
{ "title", ST_OFF(title), CONF_TYPE_STRING, 0, 0, 0, NULL },
|
||||
|
@ -69,7 +69,7 @@ static struct menu_priv_s cfg_dflt = {
|
||||
1
|
||||
};
|
||||
|
||||
static m_option_t cfg_fields[] = {
|
||||
static const m_option_t cfg_fields[] = {
|
||||
MENU_LIST_PRIV_FIELDS,
|
||||
{ "title", M_ST_OFF(menu_list_priv_t,title), CONF_TYPE_STRING, 0, 0, 0, NULL },
|
||||
{ "na", M_ST_OFF(struct menu_priv_s,na), CONF_TYPE_STRING, 0, 0, 0, NULL },
|
||||
|
@ -60,7 +60,7 @@ static struct menu_priv_s cfg_dflt = {
|
||||
|
||||
#define ST_OFF(m) M_ST_OFF(struct menu_priv_s,m)
|
||||
|
||||
static m_option_t cfg_fields[] = {
|
||||
static const m_option_t cfg_fields[] = {
|
||||
MENU_LIST_PRIV_FIELDS,
|
||||
{ "title", ST_OFF(title), CONF_TYPE_STRING, 0, 0, 0, NULL },
|
||||
{ "auto-close", ST_OFF(auto_close), CONF_TYPE_FLAG, 0, 0, 1, NULL },
|
||||
|
@ -56,7 +56,7 @@ static struct menu_priv_s cfg_dflt = {
|
||||
|
||||
#define ST_OFF(m) M_ST_OFF(struct menu_priv_s,m)
|
||||
|
||||
static m_option_t cfg_fields[] = {
|
||||
static const m_option_t cfg_fields[] = {
|
||||
{ "minbor", ST_OFF(minb), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL },
|
||||
{ "hspace", ST_OFF(hspace), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL },
|
||||
{ "file", ST_OFF(file), CONF_TYPE_STRING, 0, 0, 0, NULL },
|
||||
|
Loading…
x
Reference in New Issue
Block a user