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:
parent
d912dfe302
commit
94ed7d1672
@ -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;
|
||||
|
@ -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__ */
|
||||
|
Loading…
Reference in New Issue
Block a user