song: converted typedef Song to struct song

Again, a data type which can be forward-declared.
This commit is contained in:
Max Kellermann
2008-10-08 10:49:11 +02:00
parent 25f67da58c
commit d562ba5fbb
26 changed files with 196 additions and 118 deletions
+10 -4
View File
@@ -20,6 +20,7 @@
#include "path.h"
#include "utils.h"
#include "tag.h"
#include "song.h"
#define LOCATE_TAG_FILE_KEY "file"
#define LOCATE_TAG_FILE_KEY_OLD "filename"
@@ -122,7 +123,8 @@ void freeLocateTagItem(LocateTagItem * item)
free(item);
}
static int strstrSearchTag(Song * song, enum tag_type type, char *str)
static int
strstrSearchTag(struct song *song, enum tag_type type, char *str)
{
int i;
char *duplicate;
@@ -167,7 +169,8 @@ static int strstrSearchTag(Song * song, enum tag_type type, char *str)
return ret;
}
int strstrSearchTags(Song * song, int numItems, LocateTagItem * items)
int
strstrSearchTags(struct song *song, int numItems, LocateTagItem *items)
{
int i;
@@ -181,7 +184,8 @@ int strstrSearchTags(Song * song, int numItems, LocateTagItem * items)
return 1;
}
static int tagItemFoundAndMatches(Song * song, enum tag_type type, char *str)
static int
tagItemFoundAndMatches(struct song *song, enum tag_type type, char *str)
{
int i;
int8_t visitedTypes[TAG_NUM_OF_ITEM_TYPES] = { 0 };
@@ -221,7 +225,9 @@ static int tagItemFoundAndMatches(Song * song, enum tag_type type, char *str)
}
int tagItemsFoundAndMatches(Song * song, int numItems, LocateTagItem * items)
int
tagItemsFoundAndMatches(struct song *song, int numItems,
LocateTagItem * items)
{
int i;