aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tag.c8
-rw-r--r--src/tag.h8
-rw-r--r--src/tag_id3.c2
-rw-r--r--src/tag_id3.h2
4 files changed, 10 insertions, 10 deletions
diff --git a/src/tag.c b/src/tag.c
index b0e3e8618..cd5e227c1 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -101,7 +101,7 @@ void tag_print_types(int fd)
}
}
-void tag_print(int fd, struct mpd_tag *tag)
+void tag_print(int fd, const struct mpd_tag *tag)
{
int i;
@@ -114,7 +114,7 @@ void tag_print(int fd, struct mpd_tag *tag)
}
}
-struct mpd_tag *tag_ape_load(char *file)
+struct mpd_tag *tag_ape_load(const char *file)
{
struct mpd_tag *ret = NULL;
FILE *fp;
@@ -303,7 +303,7 @@ void tag_free(struct mpd_tag *tag)
free(tag);
}
-struct mpd_tag *tag_dup(struct mpd_tag *tag)
+struct mpd_tag *tag_dup(const struct mpd_tag *tag)
{
struct mpd_tag *ret;
int i;
@@ -321,7 +321,7 @@ struct mpd_tag *tag_dup(struct mpd_tag *tag)
return ret;
}
-int tag_equal(struct mpd_tag *tag1, struct mpd_tag *tag2)
+int tag_equal(const struct mpd_tag *tag1, const struct mpd_tag *tag2)
{
int i;
diff --git a/src/tag.h b/src/tag.h
index 44c680a98..a05f7654a 100644
--- a/src/tag.h
+++ b/src/tag.h
@@ -51,7 +51,7 @@ struct mpd_tag {
mpd_uint8 numOfItems;
};
-struct mpd_tag *tag_ape_load(char *file);
+struct mpd_tag *tag_ape_load(const char *file);
struct mpd_tag *tag_new(void);
@@ -86,10 +86,10 @@ static inline void tag_add_item(struct mpd_tag *tag, enum tag_type itemType,
void tag_print_types(int fd);
-void tag_print(int fd, struct mpd_tag *tag);
+void tag_print(int fd, const struct mpd_tag *tag);
-struct mpd_tag *tag_dup(struct mpd_tag *tag);
+struct mpd_tag *tag_dup(const struct mpd_tag *tag);
-int tag_equal(struct mpd_tag *tag1, struct mpd_tag *tag2);
+int tag_equal(const struct mpd_tag *tag1, const struct mpd_tag *tag2);
#endif
diff --git a/src/tag_id3.c b/src/tag_id3.c
index 5a51b5581..83b78150a 100644
--- a/src/tag_id3.c
+++ b/src/tag_id3.c
@@ -338,7 +338,7 @@ static struct id3_tag *findId3TagFromEnd(FILE * stream)
}
#endif
-struct mpd_tag *tag_id3_load(char *file)
+struct mpd_tag *tag_id3_load(const char *file)
{
struct mpd_tag *ret = NULL;
#ifdef HAVE_ID3TAG
diff --git a/src/tag_id3.h b/src/tag_id3.h
index 1436d0075..89eac73aa 100644
--- a/src/tag_id3.h
+++ b/src/tag_id3.h
@@ -28,6 +28,6 @@ struct id3_tag;
struct mpd_tag *tag_id3_import(struct id3_tag *);
#endif
-struct mpd_tag *tag_id3_load(char *file);
+struct mpd_tag *tag_id3_load(const char *file);
#endif