converted MpdTagItem.type to an enum
Don't use CPP macros when you can use C enum... this also allows better type checking.
This commit is contained in:
@@ -121,7 +121,7 @@ void freeLocateTagItem(LocateTagItem * item)
|
||||
free(item);
|
||||
}
|
||||
|
||||
static int strstrSearchTag(Song * song, int type, char *str)
|
||||
static int strstrSearchTag(Song * song, enum tag_type type, char *str)
|
||||
{
|
||||
int i;
|
||||
char *duplicate;
|
||||
@@ -169,7 +169,7 @@ int strstrSearchTags(Song * song, int numItems, LocateTagItem * items)
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int tagItemFoundAndMatches(Song * song, int type, char *str)
|
||||
static int tagItemFoundAndMatches(Song * song, enum tag_type type, char *str)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user