Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
b715e522
Commit
b715e522
authored
Jan 02, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db_save, state_file: convert to C++
parent
4b0b8315
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
120 additions
and
106 deletions
+120
-106
Makefile.am
Makefile.am
+25
-33
DatabaseGlue.cxx
src/DatabaseGlue.cxx
+1
-1
DatabaseSave.cxx
src/DatabaseSave.cxx
+5
-2
DatabaseSave.hxx
src/DatabaseSave.hxx
+3
-4
DirectorySave.cxx
src/DirectorySave.cxx
+8
-5
DirectorySave.hxx
src/DirectorySave.hxx
+3
-4
Main.cxx
src/Main.cxx
+1
-1
OutputState.cxx
src/OutputState.cxx
+5
-2
OutputState.hxx
src/OutputState.hxx
+3
-4
PlaylistDatabase.cxx
src/PlaylistDatabase.cxx
+8
-5
PlaylistDatabase.hxx
src/PlaylistDatabase.hxx
+3
-4
PlaylistSave.hxx
src/PlaylistSave.hxx
+0
-1
PlaylistState.cxx
src/PlaylistState.cxx
+5
-3
PlaylistState.hxx
src/PlaylistState.hxx
+3
-4
QueueSave.cxx
src/QueueSave.cxx
+7
-4
QueueSave.hxx
src/QueueSave.hxx
+3
-3
SongSave.cxx
src/SongSave.cxx
+6
-3
SongSave.hxx
src/SongSave.hxx
+3
-3
StateFile.cxx
src/StateFile.cxx
+8
-5
StateFile.hxx
src/StateFile.hxx
+3
-3
TagSave.cxx
src/TagSave.cxx
+2
-2
TagSave.hxx
src/TagSave.hxx
+3
-3
SimpleDatabasePlugin.cxx
src/db/SimpleDatabasePlugin.cxx
+1
-1
playlist_global.c
src/playlist_global.c
+0
-1
DumpPlaylist.cxx
test/DumpPlaylist.cxx
+5
-2
RunInput.cxx
test/RunInput.cxx
+6
-3
No files found.
Makefile.am
View file @
b715e522
...
...
@@ -56,7 +56,6 @@ mpd_headers = \
src/output_all.h
\
src/output_thread.h
\
src/output_control.h
\
src/output_state.h
\
src/output_print.h
\
src/output_command.h
\
src/filter_internal.h
\
...
...
@@ -82,7 +81,6 @@ mpd_headers = \
src/decoder_plugin.h
\
src/decoder_internal.h
\
src/directory.h
\
src/directory_save.h
\
src/database.h
\
src/encoder_plugin.h
\
src/encoder_list.h
\
...
...
@@ -144,11 +142,9 @@ mpd_headers = \
src/playlist.h
\
src/playlist_error.h
\
src/playlist_internal.h
\
src/playlist_state.h
\
src/playlist_plugin.h
\
src/playlist_list.h
\
src/playlist_vector.h
\
src/playlist_database.h
\
src/playlist/extm3u_playlist_plugin.h
\
src/playlist/m3u_playlist_plugin.h
\
src/playlist/pls_playlist_plugin.h
\
...
...
@@ -162,7 +158,6 @@ mpd_headers = \
src/riff.h
\
src/aiff.h
\
src/queue.h
\
src/queue_save.h
\
src/refcount.h
\
src/replay_gain_config.h
\
src/replay_gain_info.h
\
...
...
@@ -171,11 +166,9 @@ mpd_headers = \
src/time_print.c src/time_print.h
\
src/song.h
\
src/song_print.h
\
src/song_save.h
\
src/song_sticker.h
\
src/song_sort.c src/song_sort.h
\
src/socket_util.h
\
src/state_file.h
\
src/stats.h
\
src/sticker.h
\
src/sticker_print.h
\
...
...
@@ -187,7 +180,6 @@ mpd_headers = \
src/tag_id3.h
\
src/tag_rva2.h
\
src/tag_print.h
\
src/tag_save.h
\
src/tokenizer.h
\
src/strset.h
\
src/uri.h
\
...
...
@@ -241,14 +233,14 @@ src_mpd_SOURCES = \
src/decoder_internal.c
\
src/decoder_print.c
\
src/Directory.cxx
\
src/
directory_save.c
\
src/
DirectorySave.cxx src/DirectorySave.hxx
\
src/DatabaseGlue.cxx
\
src/DatabasePrint.cxx src/DatabasePrint.hxx
\
src/DatabaseQueue.cxx src/DatabaseQueue.hxx
\
src/DatabasePlaylist.cxx src/DatabasePlaylist.hxx
\
src/db_error.h
\
src/db_lock.c src/db_lock.h
\
src/
db_save.c src/db_save.h
\
src/
DatabaseSave.cxx src/DatabaseSave.hxx
\
src/DatabasePlugin.hxx
\
src/DatabaseVisitor.hxx
\
src/DatabaseSelection.cxx src/DatabaseSelection.hxx
\
...
...
@@ -313,28 +305,28 @@ src_mpd_SOURCES = \
src/PlaylistMapper.cxx src/PlaylistMapper.hxx
\
src/PlaylistAny.cxx src/PlaylistAny.hxx
\
src/PlaylistSong.cxx src/PlaylistSong.hxx
\
src/
playlist_state.c
\
src/
PlaylistState.cxx src/PlaylistState.hxx
\
src/PlaylistQueue.cxx src/PlaylistQueue.hxx
\
src/playlist_vector.c
\
src/
playlist_database.c
\
src/
PlaylistDatabase.cxx
\
src/queue.c
\
src/QueuePrint.cxx src/QueuePrint.hxx
\
src/
queue_save.c
\
src/
QueueSave.cxx src/QueueSave.hxx
\
src/replay_gain_config.c
\
src/replay_gain_info.c
\
src/sig_handlers.c
\
src/Song.cxx
\
src/song_update.c
\
src/song_print.c
\
src/
song_save.c
\
src/
SongSave.cxx src/SongSave.hxx
\
src/resolver.c src/resolver.h
\
src/socket_util.c
\
src/
state_file.c
\
src/
StateFile.cxx src/StateFile.hxx
\
src/Stats.cxx
\
src/tag.c
\
src/tag_pool.c
\
src/tag_print.c
\
src/
tag_save.c
\
src/
TagSave.cxx src/TagSave.hxx
\
src/tag_handler.c src/tag_handler.h
\
src/tag_file.c src/tag_file.h
\
src/tokenizer.c
\
...
...
@@ -821,7 +813,7 @@ OUTPUT_API_SRC = \
src/output_thread.c
\
src/output_error.h
\
src/output_control.c
\
src/
output_state.c
\
src/
OutputState.cxx src/OutputState.hxx
\
src/output_print.c
\
src/output_command.c
\
src/output_plugin.c src/output_plugin.h
\
...
...
@@ -1046,9 +1038,9 @@ noinst_PROGRAMS = \
test
/read_conf
\
test
/run_resolver
\
test
/DumpDatabase
\
test
/
run_i
nput
\
test
/
RunI
nput
\
test
/dump_text_file
\
test
/
dump_p
laylist
\
test
/
DumpP
laylist
\
test
/run_decoder
\
test
/read_tags
\
test
/run_filter
\
...
...
@@ -1083,25 +1075,25 @@ test_DumpDatabase_LDADD = \
test_DumpDatabase_SOURCES
=
test
/DumpDatabase.cxx
\
src/DatabaseRegistry.cxx
\
src/DatabaseSelection.cxx
\
src/Directory.cxx src/
directory_save.c
\
src/playlist_vector.c src/
playlist_database.c
\
src/db_lock.c src/
db_save.c
\
src/Song.cxx src/song_sort.c src/
song_save.c
\
src/tag.c src/tag_pool.c src/
tag_save.c
\
src/Directory.cxx src/
DirectorySave.cxx
\
src/playlist_vector.c src/
PlaylistDatabase.cxx
\
src/db_lock.c src/
DatabaseSave.cxx
\
src/Song.cxx src/song_sort.c src/
SongSave.cxx
\
src/tag.c src/tag_pool.c src/
TagSave.cxx
\
src/path.c
\
src/SongFilter.cxx
\
src/text_file.c
\
src/conf.c src/tokenizer.c src/utils.c src/string_util.c
test_
run_i
nput_LDADD
=
\
test_
RunI
nput_LDADD
=
\
$(INPUT_LIBS)
\
$(ARCHIVE_LIBS)
\
$(GLIB_LIBS)
test_
run_input_SOURCES
=
test
/run_i
nput.c
\
test_
RunInput_SOURCES
=
test
/RunI
nput.c
\
test
/stdbin.h
\
src/io_thread.c src/io_thread.h
\
src/conf.c src/tokenizer.c src/utils.c src/string_util.c
\
src/tag.c src/tag_pool.c src/
tag_save.c
\
src/tag.c src/tag_pool.c src/
TagSave.cxx
\
src/fd_util.c
test_dump_text_file_LDADD
=
\
...
...
@@ -1116,7 +1108,7 @@ test_dump_text_file_SOURCES = test/dump_text_file.c \
src/text_input_stream.c src/fifo_buffer.c
\
src/fd_util.c
test_
dump_p
laylist_LDADD
=
\
test_
DumpP
laylist_LDADD
=
\
$(PLAYLIST_LIBS)
\
$(FLAC_LIBS)
\
$(INPUT_LIBS)
\
...
...
@@ -1125,12 +1117,12 @@ test_dump_playlist_LDADD = \
$(TAG_LIBS)
\
libutil.a
\
$(GLIB_LIBS)
test_
dump_playlist_SOURCES
=
test
/dump_playlist.c
\
test_
DumpPlaylist_SOURCES
=
test
/DumpPlaylist.cxx
\
$(DECODER_SRC)
\
src/io_thread.c src/io_thread.h
\
src/conf.c src/tokenizer.c src/utils.c src/string_util.c
\
src/uri.c
\
src/Song.cxx src/tag.c src/tag_pool.c src/
tag_save.c
\
src/Song.cxx src/tag.c src/tag_pool.c src/
TagSave.cxx
\
src/tag_handler.c src/tag_file.c
\
src/audio_check.c src/pcm_buffer.c
\
src/text_input_stream.c src/fifo_buffer.c
\
...
...
@@ -1138,7 +1130,7 @@ test_dump_playlist_SOURCES = test/dump_playlist.c \
src/fd_util.c
if
HAVE_FLAC
test_
dump_p
laylist_SOURCES
+=
\
test_
DumpP
laylist_SOURCES
+=
\
src/replay_gain_info.c
\
src/decoder/FLACMetaData.cxx
endif
...
...
@@ -1213,11 +1205,11 @@ test_run_filter_SOURCES = test/run_filter.c \
if
ENABLE_DESPOTIFY
test_read_tags_SOURCES
+=
\
src/despotify_utils.c
test_
run_i
nput_SOURCES
+=
\
test_
RunI
nput_SOURCES
+=
\
src/despotify_utils.c
test_dump_text_file_SOURCES
+=
\
src/despotify_utils.c
test_
dump_p
laylist_SOURCES
+=
\
test_
DumpP
laylist_SOURCES
+=
\
src/despotify_utils.c
test_run_decoder_SOURCES
+=
\
src/despotify_utils.c
...
...
src/DatabaseGlue.cxx
View file @
b715e522
...
...
@@ -20,11 +20,11 @@
#include "config.h"
#include "DatabaseGlue.hxx"
#include "DatabaseRegistry.hxx"
#include "DatabaseSave.hxx"
extern
"C"
{
#include "database.h"
#include "db_error.h"
#include "db_save.h"
#include "stats.h"
#include "conf.h"
#include "glib_compat.h"
...
...
src/
db_save.c
→
src/
DatabaseSave.cxx
View file @
b715e522
...
...
@@ -18,15 +18,18 @@
*/
#include "config.h"
#include "
db_save.h
"
#include "
DatabaseSave.hxx
"
#include "db_lock.h"
#include "directory.h"
#include "
directory_save.h
"
#include "
DirectorySave.hxx
"
#include "song.h"
extern
"C"
{
#include "path.h"
#include "text_file.h"
#include "tag.h"
#include "tag_internal.h"
}
#include <glib.h>
...
...
src/
db_save.h
→
src/
DatabaseSave.hxx
View file @
b715e522
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
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_D
B_SAVE_H
#define MPD_D
B_SAVE_H
#ifndef MPD_D
ATABASE_SAVE_HXX
#define MPD_D
ATABASE_SAVE_HXX
#include "gerror.h"
#include <stdbool.h>
#include <stdio.h>
struct
directory
;
...
...
src/
directory_save.c
→
src/
DirectorySave.cxx
View file @
b715e522
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -18,12 +18,15 @@
*/
#include "config.h"
#include "
directory_save.h
"
#include "
DirectorySave.hxx
"
#include "directory.h"
#include "song.h"
#include "SongSave.hxx"
#include "PlaylistDatabase.hxx"
extern
"C"
{
#include "text_file.h"
#include "song_save.h"
#include "playlist_database.h"
}
#include <assert.h>
#include <string.h>
...
...
@@ -152,7 +155,7 @@ directory_load(FILE *fp, struct directory *directory,
if
(
directory_get_song
(
directory
,
name
)
!=
NULL
)
{
g_set_error
(
error
,
directory_quark
(),
0
,
"Duplicate song '%s'"
,
name
);
return
NULL
;
return
false
;
}
song
=
song_load
(
fp
,
directory
,
name
,
...
...
src/
directory_save.h
→
src/
DirectorySave.hxx
View file @
b715e522
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
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_DIRECTORY_SAVE_H
#define MPD_DIRECTORY_SAVE_H
#ifndef MPD_DIRECTORY_SAVE_H
XX
#define MPD_DIRECTORY_SAVE_H
XX
#include <glib.h>
#include <stdbool.h>
#include <stdio.h>
struct
directory
;
...
...
src/Main.cxx
View file @
b715e522
...
...
@@ -22,6 +22,7 @@
#include "PlaylistFile.hxx"
#include "UpdateGlue.hxx"
#include "chunk.h"
#include "StateFile.hxx"
extern
"C"
{
#include "daemon.h"
...
...
@@ -51,7 +52,6 @@ extern "C" {
#include "decoder_list.h"
#include "input_init.h"
#include "playlist_list.h"
#include "state_file.h"
#include "tag.h"
#include "zeroconf.h"
#include "event_pipe.h"
...
...
src/
output_state.c
→
src/
OutputState.cxx
View file @
b715e522
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -23,9 +23,12 @@
*/
#include "config.h"
#include "
output_state.h
"
#include "
OutputState.hxx
"
#include "output_internal.h"
extern
"C"
{
#include "output_all.h"
}
#include <glib.h>
...
...
src/
output_state.h
→
src/
OutputState.hxx
View file @
b715e522
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -22,10 +22,9 @@
*
*/
#ifndef
OUTPUT_STATE_H
#define
OUTPUT_STATE_H
#ifndef
MPD_OUTPUT_STATE_HXX
#define
MPD_OUTPUT_STATE_HXX
#include <stdbool.h>
#include <stdio.h>
bool
...
...
src/
playlist_database.c
→
src/
PlaylistDatabase.cxx
View file @
b715e522
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
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
;
...
...
src/
playlist_database.h
→
src/
PlaylistDatabase.hxx
View file @
b715e522
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
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_H
XX
#define MPD_PLAYLIST_DATABASE_H
XX
#include "check.h"
#include <stdbool.h>
#include <stdio.h>
#include <glib.h>
...
...
src/PlaylistSave.hxx
View file @
b715e522
...
...
@@ -22,7 +22,6 @@
#include "playlist_error.h"
#include <stdbool.h>
#include <stdio.h>
struct
song
;
...
...
src/
playlist_state.c
→
src/
PlaylistState.cxx
View file @
b715e522
...
...
@@ -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>
...
...
src/
playlist_state.h
→
src/
PlaylistState.hxx
View file @
b715e522
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
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
;
...
...
src/
queue_save.c
→
src/
QueueSave.cxx
View file @
b715e522
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -18,13 +18,16 @@
*/
#include "config.h"
#include "queue_save.h"
#include "queue.h"
#include "QueueSave.hxx"
#include "song.h"
#include "SongSave.hxx"
extern
"C"
{
#include "queue.h"
#include "uri.h"
#include "database.h"
#include "song_save.h"
#include "text_file.h"
}
#include <stdlib.h>
...
...
src/
queue_save.h
→
src/
QueueSave.hxx
View file @
b715e522
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -22,8 +22,8 @@
* back into memory.
*/
#ifndef
QUEUE_SAVE_H
#define
QUEUE_SAVE_H
#ifndef
MPD_QUEUE_SAVE_HXX
#define
MPD_QUEUE_SAVE_HXX
#include <glib.h>
#include <stdio.h>
...
...
src/
song_save.c
→
src/
SongSave.cxx
View file @
b715e522
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -18,13 +18,16 @@
*/
#include "config.h"
#include "
song_save.h
"
#include "
SongSave.hxx
"
#include "song.h"
#include "
tag_save.h
"
#include "
TagSave.hxx
"
#include "directory.h"
extern
"C"
{
#include "tag.h"
#include "text_file.h"
#include "string_util.h"
}
#include <glib.h>
...
...
src/
song_save.h
→
src/
SongSave.hxx
View file @
b715e522
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
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_SONG_SAVE_H
#define MPD_SONG_SAVE_H
#ifndef MPD_SONG_SAVE_H
XX
#define MPD_SONG_SAVE_H
XX
#include <glib.h>
...
...
src/
state_file.c
→
src/
StateFile.cxx
View file @
b715e522
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -18,12 +18,15 @@
*/
#include "config.h"
#include "
state_file.h
"
#include "
output_state.h
"
#include "
StateFile.hxx
"
#include "
OutputState.hxx
"
#include "playlist.h"
#include "playlist_state.h"
#include "PlaylistState.hxx"
extern
"C"
{
#include "volume.h"
#include "text_file.h"
}
#include <glib.h>
#include <assert.h>
...
...
@@ -117,7 +120,7 @@ state_file_read(struct player_control *pc)
static
gboolean
timer_save_state_file
(
gpointer
data
)
{
struct
player_control
*
pc
=
data
;
struct
player_control
*
pc
=
(
struct
player_control
*
)
data
;
if
(
prev_volume_version
==
sw_volume_state_get_hash
()
&&
prev_output_version
==
audio_output_state_get_version
()
&&
...
...
src/
state_file.h
→
src/
StateFile.hxx
View file @
b715e522
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
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_STATE_FILE_H
#define MPD_STATE_FILE_H
#ifndef MPD_STATE_FILE_H
XX
#define MPD_STATE_FILE_H
XX
struct
player_control
;
...
...
src/
tag_save.c
→
src/
TagSave.cxx
View file @
b715e522
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
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 "
tag_save.h
"
#include "
TagSave.hxx
"
#include "tag.h"
#include "tag_internal.h"
#include "song.h"
...
...
src/
tag_save.h
→
src/
TagSave.hxx
View file @
b715e522
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
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_TAG_SAVE_H
#define MPD_TAG_SAVE_H
#ifndef MPD_TAG_SAVE_H
XX
#define MPD_TAG_SAVE_H
XX
#include <stdio.h>
...
...
src/db/SimpleDatabasePlugin.cxx
View file @
b715e522
...
...
@@ -22,10 +22,10 @@
#include "DatabaseSelection.hxx"
#include "DatabaseHelpers.hxx"
#include "SongFilter.hxx"
#include "DatabaseSave.hxx"
extern
"C"
{
#include "db_error.h"
#include "db_save.h"
#include "db_lock.h"
#include "conf.h"
}
...
...
src/playlist_global.c
View file @
b715e522
...
...
@@ -24,7 +24,6 @@
#include "config.h"
#include "playlist.h"
#include "playlist_state.h"
#include "event_pipe.h"
#include "Main.hxx"
...
...
test/
dump_playlist.c
→
test/
DumpPlaylist.cxx
View file @
b715e522
...
...
@@ -18,16 +18,19 @@
*/
#include "config.h"
#include "TagSave.hxx"
#include "song.h"
extern
"C"
{
#include "io_thread.h"
#include "input_init.h"
#include "input_stream.h"
#include "tag_save.h"
#include "conf.h"
#include "song.h"
#include "decoder_api.h"
#include "decoder_list.h"
#include "playlist_list.h"
#include "playlist_plugin.h"
}
#include <glib.h>
...
...
test/
run_input.c
→
test/
RunInput.cxx
View file @
b715e522
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -18,17 +18,20 @@
*/
#include "config.h"
#include "TagSave.hxx"
#include "stdbin.h"
extern
"C"
{
#include "io_thread.h"
#include "input_init.h"
#include "input_stream.h"
#include "tag_save.h"
#include "tag.h"
#include "conf.h"
#include "stdbin.h"
#ifdef ENABLE_ARCHIVE
#include "archive_list.h"
#endif
}
#include <glib.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment