Mercurial > mplayer.hg
diff m_config.h @ 25225:51c23a18a17b
First try to mark some things in m_config correctly as const
author | reimar |
---|---|
date | Sun, 02 Dec 2007 15:35:58 +0000 |
parents | 3f0d00abc073 |
children | 4344e84f7a9f |
line wrap: on
line diff
--- a/m_config.h Sun Dec 02 15:23:14 2007 +0000 +++ b/m_config.h Sun Dec 02 15:35:58 2007 +0000 @@ -34,7 +34,7 @@ /// 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 @@ * \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 @@ /** \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.