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
d0c3fa01
Commit
d0c3fa01
authored
Sep 28, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main: use C++ compiler
parent
609f6ce6
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
39 additions
and
39 deletions
+39
-39
Makefile.am
Makefile.am
+3
-4
DatabasePlaylist.cxx
src/DatabasePlaylist.cxx
+1
-1
Main.cxx
src/Main.cxx
+12
-4
Main.hxx
src/Main.hxx
+3
-3
OtherCommands.cxx
src/OtherCommands.cxx
+1
-1
PlaylistCommands.cxx
src/PlaylistCommands.cxx
+1
-1
PlaylistFile.cxx
src/PlaylistFile.cxx
+1
-1
PlaylistFile.hxx
src/PlaylistFile.hxx
+2
-12
PlaylistMapper.cxx
src/PlaylistMapper.cxx
+1
-1
PlaylistPrint.cxx
src/PlaylistPrint.cxx
+1
-1
PlaylistSave.cxx
src/PlaylistSave.cxx
+1
-1
Win32Main.cxx
src/Win32Main.cxx
+4
-1
client_event.c
src/client_event.c
+1
-1
listen.c
src/listen.c
+1
-1
player_control.c
src/player_control.c
+1
-1
player_thread.c
src/player_thread.c
+1
-1
playlist_global.c
src/playlist_global.c
+1
-1
sig_handlers.c
src/sig_handlers.c
+1
-1
update.c
src/update.c
+1
-1
update_remove.c
src/update_remove.c
+1
-1
No files found.
Makefile.am
View file @
d0c3fa01
...
...
@@ -124,7 +124,6 @@ mpd_headers = \
src/listen.h
\
src/log.h
\
src/ls.h
\
src/main.h
\
src/mixer_all.h
\
src/mixer_api.h
\
src/mixer_control.h
\
...
...
@@ -300,8 +299,8 @@ src_mpd_SOURCES = \
src/log.c
\
src/ls.c
\
src/io_thread.c src/io_thread.h
\
src/
main.c
\
src/
main_win32.c
\
src/
Main.cxx src/Main.hxx
\
src/
Win32Main.cxx
\
src/event_pipe.c
\
src/daemon.c
\
src/AudioCompress/compress.c
\
...
...
@@ -356,7 +355,7 @@ src_mpd_SOURCES = \
src/string_util.c
\
src/volume.c
\
src/SongFilter.cxx src/SongFilter.hxx
\
src/PlaylistFile.cxx src/PlaylistFile.h
\
src/PlaylistFile.cxx src/PlaylistFile.h
xx
\
src/timer.c
#
...
...
src/DatabasePlaylist.cxx
View file @
d0c3fa01
...
...
@@ -20,7 +20,7 @@
#include "config.h"
#include "DatabasePlaylist.hxx"
#include "DatabaseSelection.hxx"
#include "PlaylistFile.h"
#include "PlaylistFile.h
xx
"
#include "DatabaseGlue.hxx"
#include "DatabasePlugin.hxx"
...
...
src/
main.c
→
src/
Main.cxx
View file @
d0c3fa01
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
2
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -18,7 +18,11 @@
*/
#include "config.h"
#include "main.h"
#include "Main.hxx"
#include "PlaylistFile.hxx"
#include "chunk.h"
extern
"C"
{
#include "daemon.h"
#include "io_thread.h"
#include "client.h"
...
...
@@ -26,7 +30,6 @@
#include "idle.h"
#include "AllCommands.h"
#include "playlist.h"
#include "PlaylistFile.h"
#include "database.h"
#include "update.h"
#include "player_thread.h"
...
...
@@ -35,7 +38,6 @@
#include "conf.h"
#include "path.h"
#include "mapper.h"
#include "chunk.h"
#include "player_control.h"
#include "stats.h"
#include "sig_handlers.h"
...
...
@@ -53,8 +55,12 @@
#include "tag.h"
#include "zeroconf.h"
#include "event_pipe.h"
}
#include "mpd_error.h"
extern
"C"
{
#ifdef ENABLE_INOTIFY
#include "inotify_update.h"
#endif
...
...
@@ -67,6 +73,8 @@
#include "archive_list.h"
#endif
}
#include <glib.h>
#include <unistd.h>
...
...
src/
main.h
→
src/
Main.hxx
View file @
d0c3fa01
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
2
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 M
AIN_H
#define M
AIN_H
#ifndef M
PD_MAIN_HXX
#define M
PD_MAIN_HXX
#include <glib.h>
...
...
src/OtherCommands.cxx
View file @
d0c3fa01
...
...
@@ -37,7 +37,7 @@ extern "C" {
#include "permission.h"
}
#include "PlaylistFile.h"
#include "PlaylistFile.h
xx
"
extern
"C"
{
#include "client.h"
...
...
src/PlaylistCommands.cxx
View file @
d0c3fa01
...
...
@@ -23,7 +23,7 @@
#include "CommandError.hxx"
#include "PlaylistPrint.hxx"
#include "PlaylistSave.hxx"
#include "PlaylistFile.h"
#include "PlaylistFile.h
xx
"
extern
"C"
{
#include "protocol/argparser.h"
...
...
src/PlaylistFile.cxx
View file @
d0c3fa01
...
...
@@ -18,7 +18,7 @@
*/
#include "config.h"
#include "PlaylistFile.h"
#include "PlaylistFile.h
xx
"
#include "PlaylistSave.hxx"
#include "song.h"
...
...
src/PlaylistFile.h
→
src/PlaylistFile.h
xx
View file @
d0c3fa01
...
...
@@ -17,14 +17,12 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_
STORED_PLAYLIST_H
#define MPD_
STORED_PLAYLIST_H
#ifndef MPD_
PLAYLIST_FILE_HXX
#define MPD_
PLAYLIST_FILE_HXX
#ifdef __cplusplus
#include <list>
#include <vector>
#include <string>
#endif
#include <glib.h>
#include <stdbool.h>
...
...
@@ -32,8 +30,6 @@
struct
song
;
#ifdef __cplusplus
struct
PlaylistFileInfo
{
std
::
string
name
;
...
...
@@ -44,20 +40,14 @@ typedef std::list<PlaylistFileInfo> PlaylistFileList;
typedef
std
::
vector
<
std
::
string
>
PlaylistFileContents
;
#endif
extern
bool
playlist_saveAbsolutePaths
;
G_BEGIN_DECLS
/**
* Perform some global initialization, e.g. load configuration values.
*/
void
spl_global_init
(
void
);
G_END_DECLS
#ifdef __cplusplus
/**
...
...
src/PlaylistMapper.cxx
View file @
d0c3fa01
...
...
@@ -19,7 +19,7 @@
#include "config.h"
#include "PlaylistMapper.h"
#include "PlaylistFile.h"
#include "PlaylistFile.h
xx
"
extern
"C"
{
#include "playlist_list.h"
...
...
src/PlaylistPrint.cxx
View file @
d0c3fa01
...
...
@@ -19,7 +19,7 @@
#include "config.h"
#include "PlaylistPrint.hxx"
#include "PlaylistFile.h"
#include "PlaylistFile.h
xx
"
#include "QueuePrint.hxx"
extern
"C"
{
...
...
src/PlaylistSave.cxx
View file @
d0c3fa01
...
...
@@ -19,7 +19,7 @@
#include "config.h"
#include "PlaylistSave.hxx"
#include "PlaylistFile.h"
#include "PlaylistFile.h
xx
"
#include "song.h"
extern
"C"
{
...
...
src/
main_win32.c
→
src/
Win32Main.cxx
View file @
d0c3fa01
...
...
@@ -18,12 +18,15 @@
*/
#include "config.h"
#include "
main.h
"
#include "
Main.hxx
"
#ifdef WIN32
#include "mpd_error.h"
extern
"C"
{
#include "event_pipe.h"
}
#include <glib.h>
...
...
src/client_event.c
View file @
d0c3fa01
...
...
@@ -19,7 +19,7 @@
#include "config.h"
#include "client_internal.h"
#include "
main.h
"
#include "
Main.hxx
"
#include <assert.h>
...
...
src/listen.c
View file @
d0c3fa01
...
...
@@ -22,7 +22,7 @@
#include "server_socket.h"
#include "client.h"
#include "conf.h"
#include "
main.h
"
#include "
Main.hxx
"
#include <string.h>
#include <assert.h>
...
...
src/player_control.c
View file @
d0c3fa01
...
...
@@ -26,7 +26,7 @@
#include "song.h"
#include "idle.h"
#include "pcm_volume.h"
#include "
main.h
"
#include "
Main.hxx
"
#include <assert.h>
#include <stdio.h>
...
...
src/player_thread.c
View file @
d0c3fa01
...
...
@@ -32,7 +32,7 @@
#include "pipe.h"
#include "chunk.h"
#include "idle.h"
#include "
main.h
"
#include "
Main.hxx
"
#include "buffer.h"
#include "mpd_error.h"
...
...
src/playlist_global.c
View file @
d0c3fa01
...
...
@@ -26,7 +26,7 @@
#include "playlist.h"
#include "playlist_state.h"
#include "event_pipe.h"
#include "
main.h
"
#include "
Main.hxx
"
struct
playlist
g_playlist
;
...
...
src/sig_handlers.c
View file @
d0c3fa01
...
...
@@ -23,7 +23,7 @@
#ifndef WIN32
#include "log.h"
#include "
main.h
"
#include "
Main.hxx
"
#include "event_pipe.h"
#include "mpd_error.h"
...
...
src/update.c
View file @
d0c3fa01
...
...
@@ -30,7 +30,7 @@
#include "update.h"
#include "idle.h"
#include "stats.h"
#include "
main.h
"
#include "
Main.hxx
"
#include "mpd_error.h"
#include <glib.h>
...
...
src/update_remove.c
View file @
d0c3fa01
...
...
@@ -22,7 +22,7 @@
#include "event_pipe.h"
#include "song.h"
#include "playlist.h"
#include "
main.h
"
#include "
Main.hxx
"
#ifdef ENABLE_SQLITE
#include "sticker.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