Commit 28030d7e authored by Max Kellermann's avatar Max Kellermann

include cleanup

parent 64819631
......@@ -22,8 +22,6 @@
#include "TagTable.hxx"
#include <stdbool.h>
struct tag_handler;
extern const struct tag_table ape_tags[];
......
......@@ -22,8 +22,6 @@
#include "gerror.h"
#include <stdbool.h>
class Client;
class Path;
......
......@@ -30,8 +30,6 @@
#include <vector>
#endif
#include <stdbool.h>
#ifdef __cplusplus
struct block_param {
......
......@@ -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;
}
......
......@@ -27,7 +27,6 @@
#include "PlaylistVector.hxx"
#include "gerror.h"
#include <stdbool.h>
#include <sys/types.h>
#define DEVICE_INARCHIVE (dev_t)(-1)
......
......@@ -22,8 +22,6 @@
#include "gerror.h"
#include <stdbool.h>
extern int listen_port;
bool
......
......@@ -21,7 +21,6 @@
#define MPD_LOG_HXX
#include <glib.h>
#include <stdbool.h>
G_GNUC_CONST
static inline GQuark
......
......@@ -29,8 +29,6 @@
#include "gerror.h"
#include <stdbool.h>
struct config_param;
class Mixer;
......
......@@ -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;
......
......@@ -23,7 +23,6 @@
#include "gcc.h"
#include "gerror.h"
#include <stdbool.h>
#include <stddef.h>
struct config_param;
......
......@@ -27,7 +27,6 @@
#include <glib.h>
#include <stdbool.h>
#include <string.h>
#define PERMISSION_PASSWORD_CHAR '@'
......
......@@ -23,8 +23,6 @@
#include "Queue.hxx"
#include "playlist_error.h"
#include <stdbool.h>
struct player_control;
struct Song;
......
......@@ -24,8 +24,6 @@
#include "gcc.h"
#include <assert.h>
#include <stddef.h>
#include <stdbool.h>
#include <sys/time.h>
#define SONG_FILE "file: "
......
......@@ -22,8 +22,6 @@
#include "check.h"
#include <stdbool.h>
struct tag_handler;
/**
......
......@@ -24,8 +24,6 @@
#include "gcc.h"
#include "gerror.h"
#include <stdbool.h>
struct tag_handler;
struct tag;
......
......@@ -22,8 +22,6 @@
#include "check.h"
#include <stdbool.h>
struct id3_tag;
struct replay_gain_info;
......
......@@ -22,8 +22,6 @@
#include "check.h"
#include <stdbool.h>
struct replay_gain_info;
struct tag_handler;
......
......@@ -22,8 +22,6 @@
#include "gerror.h"
#include <stdbool.h>
struct PulseOutput;
struct PulseMixer;
struct pa_cvolume;
......
......@@ -25,7 +25,6 @@
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#ifdef HAVE_LIBSAMPLERATE
#include <samplerate.h>
......
......@@ -24,7 +24,6 @@
#include "audio_format.h"
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
enum {
......
......@@ -22,7 +22,6 @@
#include "check.h"
#include <stdbool.h>
#include <stdint.h>
class Client;
......
......@@ -23,7 +23,6 @@
#include <glib.h>
#include <stdbool.h>
#include <assert.h>
#include <string.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment