diff options
author | Max Kellermann <max@duempel.org> | 2012-08-29 19:12:26 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-29 19:12:26 +0200 |
commit | 36b1c08ad7245a403578731c5d1240da8fc61d72 (patch) | |
tree | a2a97e7fdb510fef99ddffc1d6c6654284aaadff /src/locate.c | |
parent | 7b35d5e9d47fdea707c04e7413e5b5f0dd336fda (diff) | |
download | mpd-36b1c08ad7245a403578731c5d1240da8fc61d72.tar.gz mpd-36b1c08ad7245a403578731c5d1240da8fc61d72.tar.xz mpd-36b1c08ad7245a403578731c5d1240da8fc61d72.zip |
locate: rename to SongFilter.cxx
Diffstat (limited to '')
-rw-r--r-- | src/SongFilter.cxx (renamed from src/locate.c) | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/locate.c b/src/SongFilter.cxx index 3cf842e90..c99776e18 100644 --- a/src/locate.c +++ b/src/SongFilter.cxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2011 The Music Player Daemon Project + * Copyright (C) 2003-2012 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -18,11 +18,14 @@ */ #include "config.h" -#include "locate.h" +#include "SongFilter.hxx" #include "path.h" -#include "tag.h" #include "song.h" +extern "C" { +#include "tag.h" +} + #include <glib.h> #include <assert.h> @@ -96,7 +99,7 @@ locate_item_list_free(struct locate_item_list *list) static struct locate_item_list * locate_item_list_new(unsigned length) { - struct locate_item_list *list = + struct locate_item_list *list = (struct locate_item_list *) g_malloc(sizeof(*list) - sizeof(list->items[0]) + length * sizeof(list->items[0])); list->length = length; |