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
28030d7e
Commit
28030d7e
authored
Jul 30, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include cleanup
parent
64819631
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
8 additions
and
46 deletions
+8
-46
ApeTag.hxx
src/ApeTag.hxx
+0
-2
ClientFile.hxx
src/ClientFile.hxx
+0
-2
ConfigData.hxx
src/ConfigData.hxx
+0
-2
DecoderPlugin.hxx
src/DecoderPlugin.hxx
+8
-11
Directory.hxx
src/Directory.hxx
+0
-1
Listen.hxx
src/Listen.hxx
+0
-2
Log.hxx
src/Log.hxx
+0
-1
MixerPlugin.hxx
src/MixerPlugin.hxx
+0
-2
OutputAll.hxx
src/OutputAll.hxx
+0
-3
OutputPlugin.hxx
src/OutputPlugin.hxx
+0
-1
Permission.cxx
src/Permission.cxx
+0
-1
Playlist.hxx
src/Playlist.hxx
+0
-2
Song.hxx
src/Song.hxx
+0
-2
TagFile.hxx
src/TagFile.hxx
+0
-2
TagId3.hxx
src/TagId3.hxx
+0
-2
TagRva2.hxx
src/TagRva2.hxx
+0
-2
VorbisComments.hxx
src/decoder/VorbisComments.hxx
+0
-2
PulseOutputPlugin.hxx
src/output/PulseOutputPlugin.hxx
+0
-2
PcmResample.hxx
src/pcm/PcmResample.hxx
+0
-1
PcmVolume.hxx
src/pcm/PcmVolume.hxx
+0
-1
ArgParser.hxx
src/protocol/ArgParser.hxx
+0
-1
Tokenizer.cxx
src/util/Tokenizer.cxx
+0
-1
No files found.
src/ApeTag.hxx
View file @
28030d7e
...
@@ -22,8 +22,6 @@
...
@@ -22,8 +22,6 @@
#include "TagTable.hxx"
#include "TagTable.hxx"
#include <stdbool.h>
struct
tag_handler
;
struct
tag_handler
;
extern
const
struct
tag_table
ape_tags
[];
extern
const
struct
tag_table
ape_tags
[];
...
...
src/ClientFile.hxx
View file @
28030d7e
...
@@ -22,8 +22,6 @@
...
@@ -22,8 +22,6 @@
#include "gerror.h"
#include "gerror.h"
#include <stdbool.h>
class
Client
;
class
Client
;
class
Path
;
class
Path
;
...
...
src/ConfigData.hxx
View file @
28030d7e
...
@@ -30,8 +30,6 @@
...
@@ -30,8 +30,6 @@
#include <vector>
#include <vector>
#endif
#endif
#include <stdbool.h>
#ifdef __cplusplus
#ifdef __cplusplus
struct
block_param
{
struct
block_param
{
...
...
src/DecoderPlugin.hxx
View file @
28030d7e
...
@@ -20,9 +20,6 @@
...
@@ -20,9 +20,6 @@
#ifndef MPD_DECODER_PLUGIN_HXX
#ifndef MPD_DECODER_PLUGIN_HXX
#define MPD_DECODER_PLUGIN_HXX
#define MPD_DECODER_PLUGIN_HXX
#include <stdbool.h>
#include <stddef.h>
struct
config_param
;
struct
config_param
;
struct
input_stream
;
struct
input_stream
;
struct
tag
;
struct
tag
;
...
@@ -40,7 +37,7 @@ struct decoder_plugin {
...
@@ -40,7 +37,7 @@ struct decoder_plugin {
/**
/**
* Initialize the decoder plugin. Optional method.
* Initialize the decoder plugin. Optional method.
*
*
* @param param a configuration block for this plugin, or
NULL
* @param param a configuration block for this plugin, or
nullptr
* if none is configured
* if none is configured
* @return true if the plugin was initialized successfully,
* @return true if the plugin was initialized successfully,
* false if the plugin is not available
* false if the plugin is not available
...
@@ -94,13 +91,13 @@ struct decoder_plugin {
...
@@ -94,13 +91,13 @@ struct decoder_plugin {
* @param const char* pathname full pathname for the file on fs
* @param const char* pathname full pathname for the file on fs
* @param const unsigned int tnum track number
* @param const unsigned int tnum track number
*
*
* @return
NULL
if there are no multiple files
* @return
nullptr
if there are no multiple files
* a filename for every single track according to tnum (param 2)
* a filename for every single track according to tnum (param 2)
* do not include full pathname here, just the "virtual" file
* do not include full pathname here, just the "virtual" file
*/
*/
char
*
(
*
container_scan
)(
const
char
*
path_fs
,
const
unsigned
int
tnum
);
char
*
(
*
container_scan
)(
const
char
*
path_fs
,
const
unsigned
int
tnum
);
/* last element in these arrays must always be a
NULL
: */
/* last element in these arrays must always be a
nullptr
: */
const
char
*
const
*
suffixes
;
const
char
*
const
*
suffixes
;
const
char
*
const
*
mime_types
;
const
char
*
const
*
mime_types
;
};
};
...
@@ -108,7 +105,7 @@ struct decoder_plugin {
...
@@ -108,7 +105,7 @@ struct decoder_plugin {
/**
/**
* Initialize a decoder plugin.
* Initialize a decoder plugin.
*
*
* @param param a configuration block for this plugin, or
NULL
if none
* @param param a configuration block for this plugin, or
nullptr
if none
* is configured
* is configured
* @return true if the plugin was initialized successfully, false if
* @return true if the plugin was initialized successfully, false if
* the plugin is not available
* the plugin is not available
...
@@ -117,7 +114,7 @@ static inline bool
...
@@ -117,7 +114,7 @@ static inline bool
decoder_plugin_init
(
const
struct
decoder_plugin
*
plugin
,
decoder_plugin_init
(
const
struct
decoder_plugin
*
plugin
,
const
struct
config_param
*
param
)
const
struct
config_param
*
param
)
{
{
return
plugin
->
init
!=
NULL
return
plugin
->
init
!=
nullptr
?
plugin
->
init
(
param
)
?
plugin
->
init
(
param
)
:
true
;
:
true
;
}
}
...
@@ -128,7 +125,7 @@ decoder_plugin_init(const struct decoder_plugin *plugin,
...
@@ -128,7 +125,7 @@ decoder_plugin_init(const struct decoder_plugin *plugin,
static
inline
void
static
inline
void
decoder_plugin_finish
(
const
struct
decoder_plugin
*
plugin
)
decoder_plugin_finish
(
const
struct
decoder_plugin
*
plugin
)
{
{
if
(
plugin
->
finish
!=
NULL
)
if
(
plugin
->
finish
!=
nullptr
)
plugin
->
finish
();
plugin
->
finish
();
}
}
...
@@ -160,7 +157,7 @@ decoder_plugin_scan_file(const struct decoder_plugin *plugin,
...
@@ -160,7 +157,7 @@ decoder_plugin_scan_file(const struct decoder_plugin *plugin,
const
char
*
path_fs
,
const
char
*
path_fs
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
{
{
return
plugin
->
scan_file
!=
NULL
return
plugin
->
scan_file
!=
nullptr
?
plugin
->
scan_file
(
path_fs
,
handler
,
handler_ctx
)
?
plugin
->
scan_file
(
path_fs
,
handler
,
handler_ctx
)
:
false
;
:
false
;
}
}
...
@@ -174,7 +171,7 @@ decoder_plugin_scan_stream(const struct decoder_plugin *plugin,
...
@@ -174,7 +171,7 @@ decoder_plugin_scan_stream(const struct decoder_plugin *plugin,
const
struct
tag_handler
*
handler
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
void
*
handler_ctx
)
{
{
return
plugin
->
scan_stream
!=
NULL
return
plugin
->
scan_stream
!=
nullptr
?
plugin
->
scan_stream
(
is
,
handler
,
handler_ctx
)
?
plugin
->
scan_stream
(
is
,
handler
,
handler_ctx
)
:
false
;
:
false
;
}
}
...
...
src/Directory.hxx
View file @
28030d7e
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
#include "PlaylistVector.hxx"
#include "PlaylistVector.hxx"
#include "gerror.h"
#include "gerror.h"
#include <stdbool.h>
#include <sys/types.h>
#include <sys/types.h>
#define DEVICE_INARCHIVE (dev_t)(-1)
#define DEVICE_INARCHIVE (dev_t)(-1)
...
...
src/Listen.hxx
View file @
28030d7e
...
@@ -22,8 +22,6 @@
...
@@ -22,8 +22,6 @@
#include "gerror.h"
#include "gerror.h"
#include <stdbool.h>
extern
int
listen_port
;
extern
int
listen_port
;
bool
bool
...
...
src/Log.hxx
View file @
28030d7e
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
#define MPD_LOG_HXX
#define MPD_LOG_HXX
#include <glib.h>
#include <glib.h>
#include <stdbool.h>
G_GNUC_CONST
G_GNUC_CONST
static
inline
GQuark
static
inline
GQuark
...
...
src/MixerPlugin.hxx
View file @
28030d7e
...
@@ -29,8 +29,6 @@
...
@@ -29,8 +29,6 @@
#include "gerror.h"
#include "gerror.h"
#include <stdbool.h>
struct
config_param
;
struct
config_param
;
class
Mixer
;
class
Mixer
;
...
...
src/OutputAll.hxx
View file @
28030d7e
...
@@ -29,9 +29,6 @@
...
@@ -29,9 +29,6 @@
#include "replay_gain_info.h"
#include "replay_gain_info.h"
#include "gerror.h"
#include "gerror.h"
#include <stdbool.h>
#include <stddef.h>
struct
audio_format
;
struct
audio_format
;
struct
music_buffer
;
struct
music_buffer
;
struct
music_chunk
;
struct
music_chunk
;
...
...
src/OutputPlugin.hxx
View file @
28030d7e
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
#include "gcc.h"
#include "gcc.h"
#include "gerror.h"
#include "gerror.h"
#include <stdbool.h>
#include <stddef.h>
#include <stddef.h>
struct
config_param
;
struct
config_param
;
...
...
src/Permission.cxx
View file @
28030d7e
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
#include <glib.h>
#include <glib.h>
#include <stdbool.h>
#include <string.h>
#include <string.h>
#define PERMISSION_PASSWORD_CHAR '@'
#define PERMISSION_PASSWORD_CHAR '@'
...
...
src/Playlist.hxx
View file @
28030d7e
...
@@ -23,8 +23,6 @@
...
@@ -23,8 +23,6 @@
#include "Queue.hxx"
#include "Queue.hxx"
#include "playlist_error.h"
#include "playlist_error.h"
#include <stdbool.h>
struct
player_control
;
struct
player_control
;
struct
Song
;
struct
Song
;
...
...
src/Song.hxx
View file @
28030d7e
...
@@ -24,8 +24,6 @@
...
@@ -24,8 +24,6 @@
#include "gcc.h"
#include "gcc.h"
#include <assert.h>
#include <assert.h>
#include <stddef.h>
#include <stdbool.h>
#include <sys/time.h>
#include <sys/time.h>
#define SONG_FILE "file: "
#define SONG_FILE "file: "
...
...
src/TagFile.hxx
View file @
28030d7e
...
@@ -22,8 +22,6 @@
...
@@ -22,8 +22,6 @@
#include "check.h"
#include "check.h"
#include <stdbool.h>
struct
tag_handler
;
struct
tag_handler
;
/**
/**
...
...
src/TagId3.hxx
View file @
28030d7e
...
@@ -24,8 +24,6 @@
...
@@ -24,8 +24,6 @@
#include "gcc.h"
#include "gcc.h"
#include "gerror.h"
#include "gerror.h"
#include <stdbool.h>
struct
tag_handler
;
struct
tag_handler
;
struct
tag
;
struct
tag
;
...
...
src/TagRva2.hxx
View file @
28030d7e
...
@@ -22,8 +22,6 @@
...
@@ -22,8 +22,6 @@
#include "check.h"
#include "check.h"
#include <stdbool.h>
struct
id3_tag
;
struct
id3_tag
;
struct
replay_gain_info
;
struct
replay_gain_info
;
...
...
src/decoder/VorbisComments.hxx
View file @
28030d7e
...
@@ -22,8 +22,6 @@
...
@@ -22,8 +22,6 @@
#include "check.h"
#include "check.h"
#include <stdbool.h>
struct
replay_gain_info
;
struct
replay_gain_info
;
struct
tag_handler
;
struct
tag_handler
;
...
...
src/output/PulseOutputPlugin.hxx
View file @
28030d7e
...
@@ -22,8 +22,6 @@
...
@@ -22,8 +22,6 @@
#include "gerror.h"
#include "gerror.h"
#include <stdbool.h>
struct
PulseOutput
;
struct
PulseOutput
;
struct
PulseMixer
;
struct
PulseMixer
;
struct
pa_cvolume
;
struct
pa_cvolume
;
...
...
src/pcm/PcmResample.hxx
View file @
28030d7e
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
#include <stdint.h>
#include <stdint.h>
#include <stddef.h>
#include <stddef.h>
#include <stdbool.h>
#ifdef HAVE_LIBSAMPLERATE
#ifdef HAVE_LIBSAMPLERATE
#include <samplerate.h>
#include <samplerate.h>
...
...
src/pcm/PcmVolume.hxx
View file @
28030d7e
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
#include "audio_format.h"
#include "audio_format.h"
#include <stdint.h>
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <stddef.h>
enum
{
enum
{
...
...
src/protocol/ArgParser.hxx
View file @
28030d7e
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
#include "check.h"
#include "check.h"
#include <stdbool.h>
#include <stdint.h>
#include <stdint.h>
class
Client
;
class
Client
;
...
...
src/util/Tokenizer.cxx
View file @
28030d7e
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
#include <glib.h>
#include <glib.h>
#include <stdbool.h>
#include <assert.h>
#include <assert.h>
#include <string.h>
#include <string.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