aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-03 10:12:41 +0100
committerMax Kellermann <max@duempel.org>2013-01-03 10:12:41 +0100
commit2452447c814048ed72e95a459c76b4be65962b5c (patch)
tree187241e9a958aa9ac80f2488d7aa7e8add1ca74f
parent93f0bb8307ea26cc9ef96cf368110e8f6f0caead (diff)
downloadmpd-2452447c814048ed72e95a459c76b4be65962b5c.tar.gz
mpd-2452447c814048ed72e95a459c76b4be65962b5c.tar.xz
mpd-2452447c814048ed72e95a459c76b4be65962b5c.zip
text_file: convert to C++
Diffstat (limited to '')
-rw-r--r--Makefile.am5
-rw-r--r--src/DatabaseSave.cxx2
-rw-r--r--src/DirectorySave.cxx5
-rw-r--r--src/PlaylistDatabase.cxx2
-rw-r--r--src/PlaylistFile.cxx2
-rw-r--r--src/PlaylistState.cxx2
-rw-r--r--src/QueueSave.cxx2
-rw-r--r--src/SongSave.cxx2
-rw-r--r--src/StateFile.cxx2
-rw-r--r--src/TextFile.cxx (renamed from src/text_file.c)4
-rw-r--r--src/TextFile.hxx (renamed from src/text_file.h)6
11 files changed, 15 insertions, 19 deletions
diff --git a/Makefile.am b/Makefile.am
index dd8b58952..0c1ffe6e9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -101,7 +101,6 @@ mpd_headers = \
src/input/despotify_input_plugin.h \
src/input/cdio_paranoia_input_plugin.h \
src/despotify_utils.h \
- src/text_file.h \
src/text_input_stream.h \
src/icy_server.h \
src/icy_metadata.h \
@@ -318,7 +317,7 @@ src_mpd_SOURCES = \
src/tag_handler.c src/tag_handler.h \
src/tag_file.c src/tag_file.h \
src/tokenizer.c \
- src/text_file.c \
+ src/TextFile.cxx src/TextFile.hxx \
src/text_input_stream.c \
src/uri.c \
src/utils.c \
@@ -1069,7 +1068,7 @@ test_DumpDatabase_SOURCES = test/DumpDatabase.cxx \
src/tag.c src/tag_pool.c src/TagSave.cxx \
src/path.c \
src/SongFilter.cxx \
- src/text_file.c \
+ src/TextFile.cxx \
src/conf.c src/tokenizer.c src/utils.c src/string_util.c
test_RunInput_LDADD = \
diff --git a/src/DatabaseSave.cxx b/src/DatabaseSave.cxx
index 0424fbe29..5bd50f55f 100644
--- a/src/DatabaseSave.cxx
+++ b/src/DatabaseSave.cxx
@@ -23,10 +23,10 @@
#include "Directory.hxx"
#include "DirectorySave.hxx"
#include "song.h"
+#include "TextFile.hxx"
extern "C" {
#include "path.h"
-#include "text_file.h"
#include "tag.h"
#include "tag_internal.h"
}
diff --git a/src/DirectorySave.cxx b/src/DirectorySave.cxx
index cd750c9b2..9c5df685f 100644
--- a/src/DirectorySave.cxx
+++ b/src/DirectorySave.cxx
@@ -23,10 +23,7 @@
#include "song.h"
#include "SongSave.hxx"
#include "PlaylistDatabase.hxx"
-
-extern "C" {
-#include "text_file.h"
-}
+#include "TextFile.hxx"
#include <assert.h>
#include <string.h>
diff --git a/src/PlaylistDatabase.cxx b/src/PlaylistDatabase.cxx
index 4604a8956..984af4adc 100644
--- a/src/PlaylistDatabase.cxx
+++ b/src/PlaylistDatabase.cxx
@@ -20,9 +20,9 @@
#include "config.h"
#include "PlaylistDatabase.hxx"
#include "PlaylistVector.hxx"
+#include "TextFile.hxx"
extern "C" {
-#include "text_file.h"
#include "string_util.h"
}
diff --git a/src/PlaylistFile.cxx b/src/PlaylistFile.cxx
index 7459bd69a..e03cc5e54 100644
--- a/src/PlaylistFile.cxx
+++ b/src/PlaylistFile.cxx
@@ -25,9 +25,9 @@
#include "song.h"
#include "io_error.h"
#include "Mapper.hxx"
+#include "TextFile.hxx"
extern "C" {
-#include "text_file.h"
#include "path.h"
#include "uri.h"
#include "idle.h"
diff --git a/src/PlaylistState.cxx b/src/PlaylistState.cxx
index 0cfd32723..c45c2a834 100644
--- a/src/PlaylistState.cxx
+++ b/src/PlaylistState.cxx
@@ -25,11 +25,11 @@
#include "config.h"
#include "PlaylistState.hxx"
#include "QueueSave.hxx"
+#include "TextFile.hxx"
extern "C" {
#include "playlist.h"
#include "player_control.h"
-#include "text_file.h"
#include "conf.h"
}
diff --git a/src/QueueSave.cxx b/src/QueueSave.cxx
index d8b698a9a..a468013f4 100644
--- a/src/QueueSave.cxx
+++ b/src/QueueSave.cxx
@@ -23,11 +23,11 @@
#include "SongSave.hxx"
#include "DatabasePlugin.hxx"
#include "DatabaseGlue.hxx"
+#include "TextFile.hxx"
extern "C" {
#include "queue.h"
#include "uri.h"
-#include "text_file.h"
}
#include <stdlib.h>
diff --git a/src/SongSave.cxx b/src/SongSave.cxx
index 1aaf15481..cbc2536b1 100644
--- a/src/SongSave.cxx
+++ b/src/SongSave.cxx
@@ -22,10 +22,10 @@
#include "song.h"
#include "TagSave.hxx"
#include "Directory.hxx"
+#include "TextFile.hxx"
extern "C" {
#include "tag.h"
-#include "text_file.h"
#include "string_util.h"
}
diff --git a/src/StateFile.cxx b/src/StateFile.cxx
index 6635d9f9d..5af60ddba 100644
--- a/src/StateFile.cxx
+++ b/src/StateFile.cxx
@@ -22,10 +22,10 @@
#include "OutputState.hxx"
#include "playlist.h"
#include "PlaylistState.hxx"
+#include "TextFile.hxx"
extern "C" {
#include "volume.h"
-#include "text_file.h"
}
#include <glib.h>
diff --git a/src/text_file.c b/src/TextFile.cxx
index 3674e5ce2..ec9c5d442 100644
--- a/src/text_file.c
+++ b/src/TextFile.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,7 +18,7 @@
*/
#include "config.h"
-#include "text_file.h"
+#include "TextFile.hxx"
#include <assert.h>
#include <string.h>
diff --git a/src/text_file.h b/src/TextFile.hxx
index 9dd810943..5bd6dbd3c 100644
--- a/src/text_file.h
+++ b/src/TextFile.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,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef MPD_TEXT_FILE_H
-#define MPD_TEXT_FILE_H
+#ifndef MPD_TEXT_FILE_HXX
+#define MPD_TEXT_FILE_HXX
#include <glib.h>