aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-02 20:25:20 +0100
committerMax Kellermann <max@duempel.org>2013-01-02 20:25:20 +0100
commit0023dffd0bf8c5793e8e92b9eec9702a296ed8d2 (patch)
tree4398964cb5c2a2f28b518c425b5f930b636f5be9 /src
parentb715e522cff7109c370e66d29ba22340c9259c52 (diff)
playlist_vector: convert to C++
Diffstat (limited to 'src')
-rw-r--r--src/DatabasePrint.cxx2
-rw-r--r--src/Directory.cxx2
-rw-r--r--src/PlaylistDatabase.cxx2
-rw-r--r--src/PlaylistVector.cxx (renamed from src/playlist_vector.c)2
-rw-r--r--src/PlaylistVector.hxx (renamed from src/playlist_vector.h)7
-rw-r--r--src/UpdateDatabase.cxx5
-rw-r--r--src/UpdateWalk.cxx2
-rw-r--r--src/db/ProxyDatabasePlugin.cxx2
8 files changed, 10 insertions, 14 deletions
diff --git a/src/DatabasePrint.cxx b/src/DatabasePrint.cxx
index 97ff9c12..980aa012 100644
--- a/src/DatabasePrint.cxx
+++ b/src/DatabasePrint.cxx
@@ -21,6 +21,7 @@
#include "DatabasePrint.hxx"
#include "DatabaseSelection.hxx"
#include "SongFilter.hxx"
+#include "PlaylistVector.hxx"
extern "C" {
#include "database.h"
@@ -28,7 +29,6 @@ extern "C" {
#include "song.h"
#include "song_print.h"
#include "time_print.h"
-#include "playlist_vector.h"
#include "tag.h"
}
diff --git a/src/Directory.cxx b/src/Directory.cxx
index eeba903d..a371dc41 100644
--- a/src/Directory.cxx
+++ b/src/Directory.cxx
@@ -20,11 +20,11 @@
#include "config.h"
#include "directory.h"
#include "SongFilter.hxx"
+#include "PlaylistVector.hxx"
extern "C" {
#include "song.h"
#include "song_sort.h"
-#include "playlist_vector.h"
#include "path.h"
#include "util/list_sort.h"
#include "db_lock.h"
diff --git a/src/PlaylistDatabase.cxx b/src/PlaylistDatabase.cxx
index b88ebbd6..a2062a51 100644
--- a/src/PlaylistDatabase.cxx
+++ b/src/PlaylistDatabase.cxx
@@ -19,9 +19,9 @@
#include "config.h"
#include "PlaylistDatabase.hxx"
+#include "PlaylistVector.hxx"
extern "C" {
-#include "playlist_vector.h"
#include "text_file.h"
#include "string_util.h"
}
diff --git a/src/playlist_vector.c b/src/PlaylistVector.cxx
index 74c7bf08..ea3172d0 100644
--- a/src/playlist_vector.c
+++ b/src/PlaylistVector.cxx
@@ -18,7 +18,7 @@
*/
#include "config.h"
-#include "playlist_vector.h"
+#include "PlaylistVector.hxx"
#include "db_lock.h"
#include <assert.h>
diff --git a/src/playlist_vector.h b/src/PlaylistVector.hxx
index 0af6df8b..00347ffd 100644
--- a/src/playlist_vector.h
+++ b/src/PlaylistVector.hxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2011 The Music Player Daemon Project
+ * Copyright (C) 2003-2013 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -17,12 +17,11 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef MPD_PLAYLIST_VECTOR_H
-#define MPD_PLAYLIST_VECTOR_H
+#ifndef MPD_PLAYLIST_VECTOR_HXX
+#define MPD_PLAYLIST_VECTOR_HXX
#include "util/list.h"
-#include <stdbool.h>
#include <stddef.h>
#include <sys/time.h>
diff --git a/src/UpdateDatabase.cxx b/src/UpdateDatabase.cxx
index fa3408d6..e959a4ec 100644
--- a/src/UpdateDatabase.cxx
+++ b/src/UpdateDatabase.cxx
@@ -20,14 +20,11 @@
#include "config.h" /* must be first for large file support */
#include "UpdateDatabase.hxx"
#include "UpdateRemove.hxx"
+#include "PlaylistVector.hxx"
#include "directory.h"
#include "song.h"
#include "db_lock.h"
-extern "C" {
-#include "playlist_vector.h"
-}
-
#include <glib.h>
#include <assert.h>
diff --git a/src/UpdateWalk.cxx b/src/UpdateWalk.cxx
index a8ca1e4e..33220ba7 100644
--- a/src/UpdateWalk.cxx
+++ b/src/UpdateWalk.cxx
@@ -26,11 +26,11 @@
#include "db_lock.h"
#include "directory.h"
#include "song.h"
+#include "PlaylistVector.hxx"
extern "C" {
#include "exclude.h"
#include "database.h"
-#include "playlist_vector.h"
#include "uri.h"
#include "mapper.h"
#include "path.h"
diff --git a/src/db/ProxyDatabasePlugin.cxx b/src/db/ProxyDatabasePlugin.cxx
index d36cebcf..db8e56dd 100644
--- a/src/db/ProxyDatabasePlugin.cxx
+++ b/src/db/ProxyDatabasePlugin.cxx
@@ -21,6 +21,7 @@
#include "ProxyDatabasePlugin.hxx"
#include "DatabasePlugin.hxx"
#include "DatabaseSelection.hxx"
+#include "PlaylistVector.hxx"
#include "gcc.h"
extern "C" {
@@ -31,7 +32,6 @@ extern "C" {
}
#include "directory.h"
-#include "playlist_vector.h"
#undef MPD_DIRECTORY_H
#undef MPD_SONG_H