summaryrefslogtreecommitdiffstats
path: root/m_config.h
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-02 15:35:58 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-02 15:35:58 +0000
commite42550302c1477183eedd2b031234454796ef366 (patch)
treeaad09bf2b15484c52b03842ca1087c9cb0b86680 /m_config.h
parent41ac28984c441ebef9787ad38f8590961994357c (diff)
downloadmpv-e42550302c1477183eedd2b031234454796ef366.tar.bz2
mpv-e42550302c1477183eedd2b031234454796ef366.tar.xz
First try to mark some things in m_config correctly as const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25253 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'm_config.h')
-rw-r--r--m_config.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/m_config.h b/m_config.h
index 7b4a8db2ee..a1dc550084 100644
--- a/m_config.h
+++ b/m_config.h
@@ -34,7 +34,7 @@ struct m_config_option {
/// Full name (ie option:subopt).
char* name;
/// Option description.
- struct m_option* opt;
+ const struct m_option* opt;
/// Save slot stack.
m_config_save_slot_t* slots;
/// See \ref ConfigOptionFlags.
@@ -120,7 +120,7 @@ m_config_pop(m_config_t* config);
* \return 1 on success, 0 on failure.
*/
int
-m_config_register_options(m_config_t *config, struct m_option *args);
+m_config_register_options(m_config_t *config, const struct m_option *args);
/// Set an option.
/** \param config The config object.
@@ -144,7 +144,7 @@ m_config_check_option(m_config_t *config, char* arg, char* param);
/** \param config The config object.
* \param arg The option's name.
*/
-struct m_option*
+const struct m_option*
m_config_get_option(m_config_t *config, char* arg);
/// Print a list of all registered options.