aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-24 14:52:05 +0100
committerMax Kellermann <max@duempel.org>2009-01-24 14:52:05 +0100
commit53e712aca40d631bd26a2af4c0731aa8924cde5b (patch)
tree22654ae1cc2cfc2ef72c9fba38c8639064090ae8 /src/playlist.c
parent627d590ce524faf7ec197c54e65076107af27fe9 (diff)
downloadmpd-53e712aca40d631bd26a2af4c0731aa8924cde5b.tar.gz
mpd-53e712aca40d631bd26a2af4c0731aa8924cde5b.tar.xz
mpd-53e712aca40d631bd26a2af4c0731aa8924cde5b.zip
locate: renamed LocateTagItem to "struct locate_item"
No CamelCase and no typedefs.
Diffstat (limited to 'src/playlist.c')
-rw-r--r--src/playlist.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 32e5bba78..d63180305 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -20,6 +20,7 @@
#include "playlist_save.h"
#include "queue_print.h"
#include "queue_save.h"
+#include "locate.h"
#include "player_control.h"
#include "command.h"
#include "ls.h"
@@ -1178,11 +1179,11 @@ enum playlist_result loadPlaylist(const char *utf8file)
void
searchForSongsInPlaylist(struct client *client,
- unsigned numItems, const LocateTagItem *items)
+ unsigned numItems, const struct locate_item *items)
{
unsigned i;
- LocateTagItem *new_items =
- g_memdup(items, sizeof(LocateTagItem) * numItems);
+ struct locate_item *new_items =
+ g_memdup(items, sizeof(items[0]) * numItems);
for (i = 0; i < numItems; i++)
new_items[i].needle = g_utf8_casefold(new_items[i].needle, -1);
@@ -1199,7 +1200,7 @@ searchForSongsInPlaylist(struct client *client,
void
findSongsInPlaylist(struct client *client,
- unsigned numItems, const LocateTagItem *items)
+ unsigned numItems, const struct locate_item *items)
{
for (unsigned i = 0; i < queue_length(&playlist.queue); i++) {
const struct song *song = queue_get(&playlist.queue, i);