Mercurial > mplayer.hg
diff m_config.h @ 32300:1ca3d798b518
Mark some function parameters that are not modified as const.
patch by Clment Bsch, ubitux gmail com
author | diego |
---|---|
date | Mon, 27 Sep 2010 11:54:17 +0000 |
parents | c1a3f1bbba26 |
children |
line wrap: on
line diff
--- a/m_config.h Mon Sep 27 08:35:33 2010 +0000 +++ b/m_config.h Mon Sep 27 11:54:17 2010 +0000 @@ -156,20 +156,20 @@ * \return See \ref OptionParserReturn. */ int -m_config_check_option(m_config_t *config, char* arg, char* param); +m_config_check_option(const m_config_t *config, char *arg, char *param); /// Get the option matching the given name. /** \param config The config object. * \param arg The option's name. */ const struct m_option* -m_config_get_option(m_config_t *config, char* arg); +m_config_get_option(const m_config_t *config, char *arg); /// Print a list of all registered options. /** \param config The config object. */ void -m_config_print_option_list(m_config_t *config); +m_config_print_option_list(const m_config_t *config); /// \addtogroup ConfigProfiles ///@{ @@ -180,7 +180,7 @@ * \return The profile object or NULL. */ m_profile_t* -m_config_get_profile(m_config_t* config, char* name); +m_config_get_profile(const m_config_t *config, char *name); /// Get the profile with the given name, creating it if necessary. /** \param config The config object.