aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/PlaylistDatabase.cxx (renamed from src/playlist_database.c)13
-rw-r--r--src/PlaylistDatabase.hxx (renamed from src/playlist_database.h)7
-rw-r--r--src/PlaylistState.cxx (renamed from src/playlist_state.c)8
-rw-r--r--src/PlaylistState.hxx (renamed from src/playlist_state.h)7
-rw-r--r--src/playlist_global.c1
5 files changed, 19 insertions, 17 deletions
diff --git a/src/playlist_database.c b/src/PlaylistDatabase.cxx
index 6b9d87155..b88ebbd6b 100644
--- a/src/playlist_database.c
+++ b/src/PlaylistDatabase.cxx
@@ -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
@@ -18,10 +18,13 @@
*/
#include "config.h"
-#include "playlist_database.h"
+#include "PlaylistDatabase.hxx"
+
+extern "C" {
#include "playlist_vector.h"
#include "text_file.h"
#include "string_util.h"
+}
#include <string.h>
#include <stdlib.h>
@@ -47,9 +50,9 @@ bool
playlist_metadata_load(FILE *fp, struct list_head *pv, const char *name,
GString *buffer, GError **error_r)
{
- struct playlist_metadata pm = {
- .mtime = 0,
- };
+ struct playlist_metadata pm;
+ pm.mtime = 0;
+
char *line, *colon;
const char *value;
diff --git a/src/playlist_database.h b/src/PlaylistDatabase.hxx
index 3238fa06b..0b4cd3f3a 100644
--- a/src/playlist_database.h
+++ b/src/PlaylistDatabase.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_DATABASE_H
-#define MPD_PLAYLIST_DATABASE_H
+#ifndef MPD_PLAYLIST_DATABASE_HXX
+#define MPD_PLAYLIST_DATABASE_HXX
#include "check.h"
-#include <stdbool.h>
#include <stdio.h>
#include <glib.h>
diff --git a/src/playlist_state.c b/src/PlaylistState.cxx
index 4aa2c2c92..0cfd32723 100644
--- a/src/playlist_state.c
+++ b/src/PlaylistState.cxx
@@ -23,13 +23,15 @@
*/
#include "config.h"
-#include "playlist_state.h"
+#include "PlaylistState.hxx"
+#include "QueueSave.hxx"
+
+extern "C" {
#include "playlist.h"
#include "player_control.h"
-#include "queue_save.h"
-#include "path.h"
#include "text_file.h"
#include "conf.h"
+}
#include <string.h>
#include <stdlib.h>
diff --git a/src/playlist_state.h b/src/PlaylistState.hxx
index f67d01d2c..d38fe9d12 100644
--- a/src/playlist_state.h
+++ b/src/PlaylistState.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
@@ -22,11 +22,10 @@
*
*/
-#ifndef PLAYLIST_STATE_H
-#define PLAYLIST_STATE_H
+#ifndef MPD_PLAYLIST_STATE_HXX
+#define MPD_PLAYLIST_STATE_HXX
#include <glib.h>
-#include <stdbool.h>
#include <stdio.h>
struct playlist;
diff --git a/src/playlist_global.c b/src/playlist_global.c
index 43bf26755..e66febce0 100644
--- a/src/playlist_global.c
+++ b/src/playlist_global.c
@@ -24,7 +24,6 @@
#include "config.h"
#include "playlist.h"
-#include "playlist_state.h"
#include "event_pipe.h"
#include "Main.hxx"