Commit 84d0675a authored by erikd's avatar erikd

Make vorbis comment functions const correct.

svn path=/trunk/vorbis/; revision=13571
parent c750c6af
......@@ -166,11 +166,11 @@ extern void vorbis_info_init(vorbis_info *vi);
extern void vorbis_info_clear(vorbis_info *vi);
extern int vorbis_info_blocksize(vorbis_info *vi,int zo);
extern void vorbis_comment_init(vorbis_comment *vc);
extern void vorbis_comment_add(vorbis_comment *vc, char *comment);
extern void vorbis_comment_add(vorbis_comment *vc, const char *comment);
extern void vorbis_comment_add_tag(vorbis_comment *vc,
char *tag, char *contents);
extern char *vorbis_comment_query(vorbis_comment *vc, char *tag, int count);
extern int vorbis_comment_query_count(vorbis_comment *vc, char *tag);
const char *tag, const char *contents);
extern char *vorbis_comment_query(vorbis_comment *vc, const char *tag, int count);
extern int vorbis_comment_query_count(vorbis_comment *vc, const char *tag);
extern void vorbis_comment_clear(vorbis_comment *vc);
extern int vorbis_block_init(vorbis_dsp_state *v, vorbis_block *vb);
......@@ -59,7 +59,7 @@ void vorbis_comment_init(vorbis_comment *vc){
void vorbis_comment_add(vorbis_comment *vc,char *comment){
void vorbis_comment_add(vorbis_comment *vc,const char *comment){
......@@ -71,7 +71,7 @@ void vorbis_comment_add(vorbis_comment *vc,char *comment){
void vorbis_comment_add_tag(vorbis_comment *vc, char *tag, char *contents){
void vorbis_comment_add_tag(vorbis_comment *vc, const char *tag, const char *contents){
char *comment=alloca(strlen(tag)+strlen(contents)+2); /* +2 for = and \0 */
strcpy(comment, tag);
strcat(comment, "=");
......@@ -91,7 +91,7 @@ static int tagcompare(const char *s1, const char *s2, int n){
return 0;
char *vorbis_comment_query(vorbis_comment *vc, char *tag, int count){
char *vorbis_comment_query(vorbis_comment *vc, const char *tag, int count){
long i;
int found = 0;
int taglen = strlen(tag)+1; /* +1 for the = we append */
......@@ -112,7 +112,7 @@ char *vorbis_comment_query(vorbis_comment *vc, char *tag, int count){
return NULL; /* didn't find anything */
int vorbis_comment_query_count(vorbis_comment *vc, char *tag){
int vorbis_comment_query_count(vorbis_comment *vc, const char *tag){
int i,count=0;
int taglen = strlen(tag)+1; /* +1 for the = we append */
char *fulltag = alloca(taglen+1);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment