Mercurial > mplayer.hg
comparison m_option.h @ 19053:75327b24e06f
marks several string parameters as const, as they are not modified inside the function, Patch by Stefan Huehner, stefan AT huehner-org
author | reynaldo |
---|---|
date | Thu, 13 Jul 2006 05:03:43 +0000 |
parents | b3be7df634b0 |
children | 02a18c52a42a |
comparison
equal
deleted
inserted
replaced
19052:6866e768aef8 | 19053:75327b24e06f |
---|---|
437 * | 437 * |
438 * \param list Pointer to an array of \ref m_option. | 438 * \param list Pointer to an array of \ref m_option. |
439 * \param name Name of the option. | 439 * \param name Name of the option. |
440 * \return The matching option or NULL. | 440 * \return The matching option or NULL. |
441 */ | 441 */ |
442 m_option_t* m_option_list_find(m_option_t* list,char* name); | 442 m_option_t* m_option_list_find(m_option_t* list,const char* name); |
443 | 443 |
444 /// Helper to parse options, see \ref m_option_type::parse. | 444 /// Helper to parse options, see \ref m_option_type::parse. |
445 inline static int | 445 inline static int |
446 m_option_parse(m_option_t* opt,char *name, char *param, void* dst, int src) { | 446 m_option_parse(m_option_t* opt,char *name, char *param, void* dst, int src) { |
447 return opt->type->parse(opt,name,param,dst,src); | 447 return opt->type->parse(opt,name,param,dst,src); |