diff options
author | Max Kellermann <max@duempel.org> | 2008-08-29 09:38:11 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-08-29 09:38:11 +0200 |
commit | d0556dc9839627f899939e9419181a4ad9b2053d (patch) | |
tree | 5b444b608c281f57cb717d356f2fd52a5b0951da /src/tag.h | |
parent | f42de62aa23dc238a767a6fcf0e92fd2c5f3a8f3 (diff) | |
download | mpd-d0556dc9839627f899939e9419181a4ad9b2053d.tar.gz mpd-d0556dc9839627f899939e9419181a4ad9b2053d.tar.xz mpd-d0556dc9839627f899939e9419181a4ad9b2053d.zip |
tag: renamed MpdTag and MpdTagItem to struct tag, struct mpd_tag_item
Getting rid of CamelCase; not having typedefs also allows us to
forward-declare the structures.
Diffstat (limited to 'src/tag.h')
-rw-r--r-- | src/tag.h | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -45,34 +45,34 @@ enum tag_type { extern const char *mpdTagItemKeys[]; -typedef struct _MpdTagItem { +struct tag_item { enum tag_type type; char *value; -} MpdTagItem; +}; -typedef struct _MpdTag { +struct tag { int time; - MpdTagItem *items; + struct tag_item *items; mpd_uint8 numOfItems; -} MpdTag; +}; #ifdef HAVE_ID3TAG -MpdTag *parseId3Tag(struct id3_tag *); +struct tag *parseId3Tag(struct id3_tag *); #endif -MpdTag *apeDup(char *file); +struct tag *apeDup(char *file); -MpdTag *id3Dup(char *file); +struct tag *id3Dup(char *file); -MpdTag *newMpdTag(void); +struct tag *newMpdTag(void); void initTagConfig(void); -void clearItemsFromMpdTag(MpdTag * tag, enum tag_type itemType); +void clearItemsFromMpdTag(struct tag *tag, enum tag_type itemType); -void freeMpdTag(MpdTag * tag); +void freeMpdTag(struct tag *tag); -void addItemToMpdTagWithLen(MpdTag * tag, enum tag_type itemType, +void addItemToMpdTagWithLen(struct tag *tag, enum tag_type itemType, const char *value, size_t len); #define addItemToMpdTag(tag, itemType, value) \ @@ -80,10 +80,10 @@ void addItemToMpdTagWithLen(MpdTag * tag, enum tag_type itemType, void printTagTypes(int fd); -void printMpdTag(int fd, MpdTag * tag); +void printMpdTag(int fd, struct tag *tag); -MpdTag *mpdTagDup(MpdTag * tag); +struct tag *mpdTagDup(struct tag *tag); -int mpdTagsAreEqual(MpdTag * tag1, MpdTag * tag2); +int mpdTagsAreEqual(struct tag *tag1, struct tag *tag2); #endif |