1
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 07:33:46 +01:00

m_config.[ch]: mark some function parameters const

patch by Clément Bœsch, ubitux gmail com

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32386 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2010-09-27 11:54:17 +00:00 committed by Uoti Urpala
parent 426235c2f9
commit cce06f6f21
2 changed files with 10 additions and 10 deletions

View File

@ -283,7 +283,7 @@ m_config_register_options(m_config_t *config, const m_option_t *args) {
}
static m_config_option_t*
m_config_get_co(m_config_t *config, char* arg) {
m_config_get_co(const m_config_t *config, char *arg) {
m_config_option_t *co;
for(co = config->opts ; co ; co = co->next ) {
@ -299,7 +299,7 @@ m_config_get_co(m_config_t *config, char* arg) {
}
static int
m_config_parse_option(m_config_t *config, char* arg, char* param,int set) {
m_config_parse_option(const m_config_t *config, char *arg, char *param, int set) {
m_config_option_t *co;
int r = 0;
@ -390,7 +390,7 @@ m_config_set_option(m_config_t *config, char* arg, char* param) {
}
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) {
int r;
mp_msg(MSGT_CFGPARSER, MSGL_DBG2,"Checking %s=%s\n",arg,param);
r=m_config_parse_option(config,arg,param,0);
@ -403,7 +403,7 @@ m_config_check_option(m_config_t *config, char* arg, char* param) {
const m_option_t*
m_config_get_option(m_config_t *config, char* arg) {
m_config_get_option(const m_config_t *config, char *arg) {
m_config_option_t *co;
#ifdef MP_DEBUG
@ -420,7 +420,7 @@ m_config_get_option(m_config_t *config, char* arg) {
}
void
m_config_print_option_list(m_config_t *config) {
m_config_print_option_list(const m_config_t *config) {
char min[50],max[50];
m_config_option_t* co;
int count = 0;
@ -453,7 +453,7 @@ m_config_print_option_list(m_config_t *config) {
}
m_profile_t*
m_config_get_profile(m_config_t* config, char* name) {
m_config_get_profile(const m_config_t *config, char *name) {
m_profile_t* p;
for(p = config->profiles ; p ; p = p->next)
if(!strcmp(p->name,name)) return p;

View File

@ -157,20 +157,20 @@ m_config_set_option(m_config_t *config, char* arg, char* param);
* \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
///@{
@ -181,7 +181,7 @@ m_config_print_option_list(m_config_t *config);
* \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.