include cleanup

This commit is contained in:
Max Kellermann 2013-07-30 08:39:21 +02:00
parent 648196319f
commit 28030d7edb
22 changed files with 8 additions and 46 deletions

View File

@ -22,8 +22,6 @@
#include "TagTable.hxx"
#include <stdbool.h>
struct tag_handler;
extern const struct tag_table ape_tags[];

View File

@ -22,8 +22,6 @@
#include "gerror.h"
#include <stdbool.h>
class Client;
class Path;

View File

@ -30,8 +30,6 @@
#include <vector>
#endif
#include <stdbool.h>
#ifdef __cplusplus
struct block_param {

View File

@ -20,9 +20,6 @@
#ifndef MPD_DECODER_PLUGIN_HXX
#define MPD_DECODER_PLUGIN_HXX
#include <stdbool.h>
#include <stddef.h>
struct config_param;
struct input_stream;
struct tag;
@ -40,7 +37,7 @@ struct decoder_plugin {
/**
* 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
* @return true if the plugin was initialized successfully,
* false if the plugin is not available
@ -94,13 +91,13 @@ struct decoder_plugin {
* @param const char* pathname full pathname for the file on fs
* @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)
* do not include full pathname here, just the "virtual" file
*/
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*mime_types;
};
@ -108,7 +105,7 @@ struct 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
* @return true if the plugin was initialized successfully, false if
* the plugin is not available
@ -117,7 +114,7 @@ static inline bool
decoder_plugin_init(const struct decoder_plugin *plugin,
const struct config_param *param)
{
return plugin->init != NULL
return plugin->init != nullptr
? plugin->init(param)
: true;
}
@ -128,7 +125,7 @@ decoder_plugin_init(const struct decoder_plugin *plugin,
static inline void
decoder_plugin_finish(const struct decoder_plugin *plugin)
{
if (plugin->finish != NULL)
if (plugin->finish != nullptr)
plugin->finish();
}
@ -160,7 +157,7 @@ decoder_plugin_scan_file(const struct decoder_plugin *plugin,
const char *path_fs,
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)
: false;
}
@ -174,7 +171,7 @@ decoder_plugin_scan_stream(const struct decoder_plugin *plugin,
const struct tag_handler *handler,
void *handler_ctx)
{
return plugin->scan_stream != NULL
return plugin->scan_stream != nullptr
? plugin->scan_stream(is, handler, handler_ctx)
: false;
}

View File

@ -27,7 +27,6 @@
#include "PlaylistVector.hxx"
#include "gerror.h"
#include <stdbool.h>
#include <sys/types.h>
#define DEVICE_INARCHIVE (dev_t)(-1)

View File

@ -22,8 +22,6 @@
#include "gerror.h"
#include <stdbool.h>
extern int listen_port;
bool

View File

@ -21,7 +21,6 @@
#define MPD_LOG_HXX
#include <glib.h>
#include <stdbool.h>
G_GNUC_CONST
static inline GQuark

View File

@ -29,8 +29,6 @@
#include "gerror.h"
#include <stdbool.h>
struct config_param;
class Mixer;

View File

@ -29,9 +29,6 @@
#include "replay_gain_info.h"
#include "gerror.h"
#include <stdbool.h>
#include <stddef.h>
struct audio_format;
struct music_buffer;
struct music_chunk;

View File

@ -23,7 +23,6 @@
#include "gcc.h"
#include "gerror.h"
#include <stdbool.h>
#include <stddef.h>
struct config_param;

View File

@ -27,7 +27,6 @@
#include <glib.h>
#include <stdbool.h>
#include <string.h>
#define PERMISSION_PASSWORD_CHAR '@'

View File

@ -23,8 +23,6 @@
#include "Queue.hxx"
#include "playlist_error.h"
#include <stdbool.h>
struct player_control;
struct Song;

View File

@ -24,8 +24,6 @@
#include "gcc.h"
#include <assert.h>
#include <stddef.h>
#include <stdbool.h>
#include <sys/time.h>
#define SONG_FILE "file: "

View File

@ -22,8 +22,6 @@
#include "check.h"
#include <stdbool.h>
struct tag_handler;
/**

View File

@ -24,8 +24,6 @@
#include "gcc.h"
#include "gerror.h"
#include <stdbool.h>
struct tag_handler;
struct tag;

View File

@ -22,8 +22,6 @@
#include "check.h"
#include <stdbool.h>
struct id3_tag;
struct replay_gain_info;

View File

@ -22,8 +22,6 @@
#include "check.h"
#include <stdbool.h>
struct replay_gain_info;
struct tag_handler;

View File

@ -22,8 +22,6 @@
#include "gerror.h"
#include <stdbool.h>
struct PulseOutput;
struct PulseMixer;
struct pa_cvolume;

View File

@ -25,7 +25,6 @@
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#ifdef HAVE_LIBSAMPLERATE
#include <samplerate.h>

View File

@ -24,7 +24,6 @@
#include "audio_format.h"
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
enum {

View File

@ -22,7 +22,6 @@
#include "check.h"
#include <stdbool.h>
#include <stdint.h>
class Client;

View File

@ -23,7 +23,6 @@
#include <glib.h>
#include <stdbool.h>
#include <assert.h>
#include <string.h>