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
0c245bc2
Commit
0c245bc2
authored
Jan 02, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Directory: make the header C++ only
parent
d65ad1bf
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
33 additions
and
53 deletions
+33
-53
Makefile.am
Makefile.am
+5
-6
DatabaseGlue.cxx
src/DatabaseGlue.cxx
+1
-2
DatabasePrint.cxx
src/DatabasePrint.cxx
+1
-2
DatabaseSave.cxx
src/DatabaseSave.cxx
+1
-1
Directory.cxx
src/Directory.cxx
+1
-1
Directory.hxx
src/Directory.hxx
+3
-15
DirectorySave.cxx
src/DirectorySave.cxx
+1
-1
Mapper.cxx
src/Mapper.cxx
+1
-1
OtherCommands.cxx
src/OtherCommands.cxx
+1
-1
Song.cxx
src/Song.cxx
+1
-1
SongPrint.cxx
src/SongPrint.cxx
+1
-1
SongSave.cxx
src/SongSave.cxx
+1
-1
SongSticker.cxx
src/SongSticker.cxx
+1
-1
SongUpdate.cxx
src/SongUpdate.cxx
+1
-1
UpdateArchive.cxx
src/UpdateArchive.cxx
+1
-1
UpdateContainer.cxx
src/UpdateContainer.cxx
+1
-1
UpdateDatabase.cxx
src/UpdateDatabase.cxx
+1
-1
UpdateIO.cxx
src/UpdateIO.cxx
+1
-1
UpdateSong.cxx
src/UpdateSong.cxx
+1
-1
UpdateWalk.cxx
src/UpdateWalk.cxx
+1
-1
ProxyDatabasePlugin.cxx
src/db/ProxyDatabasePlugin.cxx
+1
-2
SimpleDatabasePlugin.cxx
src/db/SimpleDatabasePlugin.cxx
+1
-2
DumpDatabase.cxx
test/DumpDatabase.cxx
+1
-1
TestQueuePriority.cxx
test/TestQueuePriority.cxx
+4
-7
No files found.
Makefile.am
View file @
0c245bc2
...
...
@@ -79,7 +79,6 @@ mpd_headers = \
src/decoder_api.h
\
src/decoder_plugin.h
\
src/decoder_internal.h
\
src/directory.h
\
src/database.h
\
src/encoder_plugin.h
\
src/encoder_list.h
\
...
...
@@ -223,7 +222,7 @@ src_mpd_SOURCES = \
src/decoder_api.c
\
src/decoder_internal.c
\
src/decoder_print.c
\
src/Directory.cxx
\
src/Directory.cxx
src/Directory.hxx
\
src/DirectorySave.cxx src/DirectorySave.hxx
\
src/DatabaseGlue.cxx
\
src/DatabasePrint.cxx src/DatabasePrint.hxx
\
...
...
@@ -1021,7 +1020,7 @@ if ENABLE_TEST
C_TESTS
=
\
test
/test_byte_reverse
\
test
/test_pcm
\
test
/
test_queue_p
riority
test
/
TestQueueP
riority
TESTS
=
$(C_TESTS)
...
...
@@ -1357,10 +1356,10 @@ test_test_pcm_LDADD = \
libutil.a
\
$(GLIB_LIBS)
test_
test_queue_p
riority_SOURCES
=
\
test_
TestQueueP
riority_SOURCES
=
\
src/queue.c
\
test
/
test_queue_p
riority.c
test_
test_queue_p
riority_LDADD
=
\
test
/
TestQueueP
riority.c
test_
TestQueueP
riority_LDADD
=
\
$(GLIB_LIBS)
noinst_PROGRAMS
+=
src/dsd2pcm/dsd2pcm
...
...
src/DatabaseGlue.cxx
View file @
0c245bc2
...
...
@@ -21,6 +21,7 @@
#include "DatabaseGlue.hxx"
#include "DatabaseRegistry.hxx"
#include "DatabaseSave.hxx"
#include "Directory.hxx"
extern
"C"
{
#include "database.h"
...
...
@@ -30,8 +31,6 @@ extern "C" {
#include "glib_compat.h"
}
#include "directory.h"
#include "DatabasePlugin.hxx"
#include "db/SimpleDatabasePlugin.hxx"
...
...
src/DatabasePrint.cxx
View file @
0c245bc2
...
...
@@ -24,6 +24,7 @@
#include "PlaylistVector.hxx"
#include "SongPrint.hxx"
#include "TimePrint.hxx"
#include "Directory.hxx"
extern
"C"
{
#include "database.h"
...
...
@@ -32,8 +33,6 @@ extern "C" {
#include "tag.h"
}
#include "directory.h"
#include "DatabaseGlue.hxx"
#include "DatabasePlugin.hxx"
...
...
src/DatabaseSave.cxx
View file @
0c245bc2
...
...
@@ -20,7 +20,7 @@
#include "config.h"
#include "DatabaseSave.hxx"
#include "DatabaseLock.hxx"
#include "
directory.h
"
#include "
Directory.hxx
"
#include "DirectorySave.hxx"
#include "song.h"
...
...
src/Directory.cxx
View file @
0c245bc2
...
...
@@ -18,7 +18,7 @@
*/
#include "config.h"
#include "
directory.h
"
#include "
Directory.hxx
"
#include "SongFilter.hxx"
#include "PlaylistVector.hxx"
#include "DatabaseLock.hxx"
...
...
src/
directory.h
→
src/
Directory.hxx
View file @
0c245bc2
/*
* 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,16 +17,13 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_DIRECTORY_H
#define MPD_DIRECTORY_H
#ifndef MPD_DIRECTORY_H
XX
#define MPD_DIRECTORY_H
XX
#include "check.h"
#include "util/list.h"
#include "gcc.h"
#ifdef __cplusplus
#include "DatabaseVisitor.hxx"
#endif
#include <glib.h>
#include <stdbool.h>
...
...
@@ -55,10 +52,7 @@
struct
song
;
struct
db_visitor
;
#ifdef __cplusplus
class
SongFilter
;
#endif
struct
directory
{
/**
...
...
@@ -96,7 +90,6 @@ struct directory {
bool
have_stat
;
/* not needed if ino_t == dev_t == 0 is impossible */
char
path
[
sizeof
(
long
)];
#ifdef __cplusplus
/**
* Caller must lock #db_mutex.
*/
...
...
@@ -104,11 +97,8 @@ struct directory {
VisitDirectory
visit_directory
,
VisitSong
visit_song
,
VisitPlaylist
visit_playlist
,
GError
**
error_r
)
const
;
#endif
};
G_BEGIN_DECLS
static
inline
bool
isRootDirectory
(
const
char
*
name
)
{
...
...
@@ -272,6 +262,4 @@ directory_lookup_song(struct directory *directory, const char *uri);
void
directory_sort
(
struct
directory
*
directory
);
G_END_DECLS
#endif
src/DirectorySave.cxx
View file @
0c245bc2
...
...
@@ -19,7 +19,7 @@
#include "config.h"
#include "DirectorySave.hxx"
#include "
directory.h
"
#include "
Directory.hxx
"
#include "song.h"
#include "SongSave.hxx"
#include "PlaylistDatabase.hxx"
...
...
src/Mapper.cxx
View file @
0c245bc2
...
...
@@ -23,7 +23,7 @@
#include "config.h"
#include "Mapper.hxx"
#include "
directory.h
"
#include "
Directory.hxx
"
#include "song.h"
extern
"C"
{
...
...
src/OtherCommands.cxx
View file @
0c245bc2
...
...
@@ -22,7 +22,7 @@
#include "DatabaseCommands.hxx"
#include "CommandError.hxx"
#include "UpdateGlue.hxx"
#include "
directory.h
"
#include "
Directory.hxx
"
#include "song.h"
#include "SongPrint.hxx"
#include "TagPrint.hxx"
...
...
src/Song.cxx
View file @
0c245bc2
...
...
@@ -19,7 +19,7 @@
#include "config.h"
#include "song.h"
#include "
directory.h
"
#include "
Directory.hxx
"
extern
"C"
{
#include "tag.h"
...
...
src/SongPrint.cxx
View file @
0c245bc2
...
...
@@ -20,7 +20,7 @@
#include "config.h"
#include "SongPrint.hxx"
#include "song.h"
#include "
directory.h
"
#include "
Directory.hxx
"
#include "TimePrint.hxx"
#include "TagPrint.hxx"
#include "Mapper.hxx"
...
...
src/SongSave.cxx
View file @
0c245bc2
...
...
@@ -21,7 +21,7 @@
#include "SongSave.hxx"
#include "song.h"
#include "TagSave.hxx"
#include "
directory.h
"
#include "
Directory.hxx
"
extern
"C"
{
#include "tag.h"
...
...
src/SongSticker.cxx
View file @
0c245bc2
...
...
@@ -21,7 +21,7 @@
#include "SongSticker.hxx"
#include "StickerDatabase.hxx"
#include "song.h"
#include "
directory.h
"
#include "
Directory.hxx
"
#include <glib.h>
...
...
src/SongUpdate.cxx
View file @
0c245bc2
...
...
@@ -24,7 +24,7 @@ extern "C" {
#include "uri.h"
}
#include "
directory.h
"
#include "
Directory.hxx
"
#include "Mapper.hxx"
extern
"C"
{
...
...
src/UpdateArchive.cxx
View file @
0c245bc2
...
...
@@ -21,7 +21,7 @@
#include "UpdateArchive.hxx"
#include "UpdateInternal.hxx"
#include "DatabaseLock.hxx"
#include "
directory.h
"
#include "
Directory.hxx
"
#include "song.h"
#include "Mapper.hxx"
...
...
src/UpdateContainer.cxx
View file @
0c245bc2
...
...
@@ -22,7 +22,7 @@
#include "UpdateInternal.hxx"
#include "UpdateDatabase.hxx"
#include "DatabaseLock.hxx"
#include "
directory.h
"
#include "
Directory.hxx
"
#include "song.h"
#include "decoder_plugin.h"
#include "Mapper.hxx"
...
...
src/UpdateDatabase.cxx
View file @
0c245bc2
...
...
@@ -21,7 +21,7 @@
#include "UpdateDatabase.hxx"
#include "UpdateRemove.hxx"
#include "PlaylistVector.hxx"
#include "
directory.h
"
#include "
Directory.hxx
"
#include "song.h"
#include "DatabaseLock.hxx"
...
...
src/UpdateIO.cxx
View file @
0c245bc2
...
...
@@ -19,7 +19,7 @@
#include "config.h"
/* must be first for large file support */
#include "UpdateIO.hxx"
#include "
directory.h
"
#include "
Directory.hxx
"
#include "Mapper.hxx"
#include "glib_compat.h"
...
...
src/UpdateSong.cxx
View file @
0c245bc2
...
...
@@ -24,7 +24,7 @@
#include "UpdateDatabase.hxx"
#include "UpdateContainer.hxx"
#include "DatabaseLock.hxx"
#include "
directory.h
"
#include "
Directory.hxx
"
#include "song.h"
#include "decoder_plugin.h"
...
...
src/UpdateWalk.cxx
View file @
0c245bc2
...
...
@@ -24,7 +24,7 @@
#include "UpdateSong.hxx"
#include "UpdateArchive.hxx"
#include "DatabaseLock.hxx"
#include "
directory.h
"
#include "
Directory.hxx
"
#include "song.h"
#include "PlaylistVector.hxx"
#include "Mapper.hxx"
...
...
src/db/ProxyDatabasePlugin.cxx
View file @
0c245bc2
...
...
@@ -22,6 +22,7 @@
#include "DatabasePlugin.hxx"
#include "DatabaseSelection.hxx"
#include "PlaylistVector.hxx"
#include "Directory.hxx"
#include "gcc.h"
extern
"C"
{
...
...
@@ -31,8 +32,6 @@ extern "C" {
#include "tag.h"
}
#include "directory.h"
#undef MPD_DIRECTORY_H
#undef MPD_SONG_H
#include <mpd/client.h>
...
...
src/db/SimpleDatabasePlugin.cxx
View file @
0c245bc2
...
...
@@ -21,6 +21,7 @@
#include "SimpleDatabasePlugin.hxx"
#include "DatabaseSelection.hxx"
#include "DatabaseHelpers.hxx"
#include "Directory.hxx"
#include "SongFilter.hxx"
#include "DatabaseSave.hxx"
#include "DatabaseLock.hxx"
...
...
@@ -30,8 +31,6 @@ extern "C" {
#include "conf.h"
}
#include "directory.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
...
...
test/DumpDatabase.cxx
View file @
0c245bc2
...
...
@@ -21,7 +21,7 @@
#include "DatabaseRegistry.hxx"
#include "DatabasePlugin.hxx"
#include "DatabaseSelection.hxx"
#include "
directory.h
"
#include "
Directory.hxx
"
#include "song.h"
#include "PlaylistVector.hxx"
...
...
test/
test_queue_priority.c
→
test/
TestQueuePriority.cxx
View file @
0c245bc2
#include "config.h"
extern
"C"
{
#include "queue.h"
}
#include "song.h"
#include "
directory.h
"
#include "
Directory.hxx
"
struct
directory
detached_root
;
struct
song
*
song_dup_detached
(
const
struct
song
*
src
)
{
union
{
const
struct
song
*
in
;
struct
song
*
out
;
}
u
=
{
.
in
=
src
};
return
u
.
out
;
return
const_cast
<
song
*>
(
src
);
}
void
...
...
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