1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-11-03 04:17:18 -05:00

Const'ify configfile functions.

git-svn-id: https://svn.xiph.org/trunk/ezstream@12545 0101bb08-14d6-0310-b084-bc0e0c8e3800
This commit is contained in:
moritz 2007-02-24 22:50:14 +00:00
parent d912dfe302
commit 94ed7d1672
2 changed files with 6 additions and 6 deletions

View File

@ -43,7 +43,7 @@ getEZConfig(void)
return (&ezConfig);
}
char* getFormatEncoder(char *format)
char* getFormatEncoder(const char *format)
{
int i = 0;
for (i=0;i<ezConfig.numEncoderDecoders;i++) {
@ -63,7 +63,7 @@ char* getFormatEncoder(char *format)
return blankString;
}
char* getFormatDecoder(char *match)
char* getFormatDecoder(const char *match)
{
int i = 0;
for (i=0;i<ezConfig.numEncoderDecoders;i++) {
@ -83,7 +83,7 @@ char* getFormatDecoder(char *match)
return blankString;
}
int parseConfig(char *fileName)
int parseConfig(const char *fileName)
{
xmlDocPtr doc;
xmlNodePtr cur;

View File

@ -60,8 +60,8 @@ typedef struct tag_EZCONFIG {
} EZCONFIG;
EZCONFIG * getEZConfig(void);
char * getFormatEncoder(char *format);
char * getFormatDecoder(char *match);
int parseConfig(char *fileName);
char * getFormatEncoder(const char *format);
char * getFormatDecoder(const char *match);
int parseConfig(const char *fileName);
#endif /* __CONFIGFILE_H__ */