include cleanup using iwyu
This commit is contained in:
@@ -27,8 +27,6 @@
|
||||
#include "DsdLib.hxx"
|
||||
#include "DecoderAPI.hxx"
|
||||
#include "InputStream.hxx"
|
||||
#include "util/bit_reverse.h"
|
||||
#include "tag/TagHandler.hxx"
|
||||
#include "tag/TagId3.hxx"
|
||||
#include "util/Error.hxx"
|
||||
|
||||
|
@@ -38,9 +38,6 @@
|
||||
#include "DsdLib.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h> /* for SEEK_SET, SEEK_CUR */
|
||||
|
||||
struct DsdiffHeader {
|
||||
DsdId id;
|
||||
DffDsdUint64 size;
|
||||
|
@@ -39,9 +39,6 @@
|
||||
#include "tag/TagHandler.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h> /* for SEEK_SET, SEEK_CUR */
|
||||
|
||||
struct DsfMetaData {
|
||||
unsigned sample_rate, channels;
|
||||
bool bitreverse;
|
||||
|
@@ -38,7 +38,6 @@ extern "C" {
|
||||
#include <libavutil/avutil.h>
|
||||
#include <libavutil/log.h>
|
||||
#include <libavutil/mathematics.h>
|
||||
#include <libavutil/dict.h>
|
||||
}
|
||||
|
||||
#include <assert.h>
|
||||
|
@@ -21,8 +21,6 @@
|
||||
#define MPD_FFMPEG_METADATA_HXX
|
||||
|
||||
extern "C" {
|
||||
#include <libavformat/avformat.h>
|
||||
#include <libavutil/avutil.h>
|
||||
#include <libavutil/dict.h>
|
||||
}
|
||||
|
||||
@@ -35,6 +33,6 @@ struct tag_handler;
|
||||
|
||||
void
|
||||
ffmpeg_scan_dictionary(AVDictionary *dict,
|
||||
const struct tag_handler *handler, void *handler_ctx);
|
||||
const tag_handler *handler, void *handler_ctx);
|
||||
|
||||
#endif
|
||||
|
@@ -25,14 +25,10 @@
|
||||
#include "FlacCommon.hxx"
|
||||
#include "FlacMetadata.hxx"
|
||||
#include "FlacPcm.hxx"
|
||||
#include "MixRampInfo.hxx"
|
||||
#include "CheckAudioFormat.hxx"
|
||||
#include "util/Error.hxx"
|
||||
#include "util/Domain.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
flac_data::flac_data(Decoder &_decoder,
|
||||
InputStream &_input_stream)
|
||||
:FlacInput(_input_stream, &_decoder),
|
||||
|
@@ -29,7 +29,6 @@
|
||||
#include "pcm/PcmBuffer.hxx"
|
||||
|
||||
#include <FLAC/stream_decoder.h>
|
||||
#include <FLAC/metadata.h>
|
||||
|
||||
struct flac_data : public FlacInput {
|
||||
PcmBuffer buffer;
|
||||
|
@@ -26,10 +26,6 @@
|
||||
#include "util/Error.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT <= 7
|
||||
#error libFLAC is too old
|
||||
#endif
|
||||
|
@@ -21,7 +21,6 @@
|
||||
#include "FlacMetadata.hxx"
|
||||
#include "XiphTags.hxx"
|
||||
#include "MixRampInfo.hxx"
|
||||
#include "tag/Tag.hxx"
|
||||
#include "tag/TagHandler.hxx"
|
||||
#include "tag/TagTable.hxx"
|
||||
#include "tag/TagBuilder.hxx"
|
||||
@@ -30,7 +29,6 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
static bool
|
||||
|
@@ -27,6 +27,7 @@
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
struct tag_handler;
|
||||
class MixRampInfo;
|
||||
|
||||
class FlacMetadataChain {
|
||||
@@ -81,7 +82,7 @@ public:
|
||||
return FLAC__Metadata_ChainStatusString[GetStatus()];
|
||||
}
|
||||
|
||||
void Scan(const struct tag_handler *handler, void *handler_ctx);
|
||||
void Scan(const tag_handler *handler, void *handler_ctx);
|
||||
};
|
||||
|
||||
class FLACMetadataIterator {
|
||||
@@ -110,7 +111,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
struct tag_handler;
|
||||
struct Tag;
|
||||
struct ReplayGainInfo;
|
||||
|
||||
@@ -136,6 +136,6 @@ flac_vorbis_comments_to_tag(Tag &tag,
|
||||
|
||||
void
|
||||
flac_scan_metadata(const FLAC__StreamMetadata *block,
|
||||
const struct tag_handler *handler, void *handler_ctx);
|
||||
const tag_handler *handler, void *handler_ctx);
|
||||
|
||||
#endif
|
||||
|
@@ -32,7 +32,6 @@
|
||||
#include "Log.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@@ -25,8 +25,8 @@
|
||||
#include "util/Domain.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
#include <glib.h>
|
||||
#include <mikmod.h>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
static constexpr Domain mikmod_domain("mikmod");
|
||||
|
@@ -30,8 +30,6 @@
|
||||
|
||||
#include <mpc/mpcdec.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <unistd.h>
|
||||
#include <math.h>
|
||||
|
||||
struct mpc_decoder_data {
|
||||
|
@@ -26,9 +26,8 @@
|
||||
#include "util/Domain.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include <mpg123.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
static constexpr Domain mpg123_domain("mpg123");
|
||||
|
@@ -23,6 +23,7 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "OggCodec.hxx"
|
||||
#include "DecoderAPI.hxx"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
@@ -24,7 +24,8 @@
|
||||
#ifndef MPD_OGG_CODEC_HXX
|
||||
#define MPD_OGG_CODEC_HXX
|
||||
|
||||
#include "DecoderAPI.hxx"
|
||||
struct Decoder;
|
||||
struct InputStream;
|
||||
|
||||
enum ogg_codec {
|
||||
OGG_CODEC_UNKNOWN,
|
||||
|
@@ -25,7 +25,6 @@
|
||||
|
||||
#include <ogg/ogg.h>
|
||||
|
||||
struct InputStream;
|
||||
class OggSyncState;
|
||||
|
||||
/**
|
||||
|
@@ -22,12 +22,10 @@
|
||||
#include "OpusDomain.hxx"
|
||||
#include "OpusHead.hxx"
|
||||
#include "OpusTags.hxx"
|
||||
#include "OggUtil.hxx"
|
||||
#include "OggFind.hxx"
|
||||
#include "OggSyncState.hxx"
|
||||
#include "DecoderAPI.hxx"
|
||||
#include "OggCodec.hxx"
|
||||
#include "CheckAudioFormat.hxx"
|
||||
#include "tag/TagHandler.hxx"
|
||||
#include "tag/TagBuilder.hxx"
|
||||
#include "InputStream.hxx"
|
||||
|
@@ -21,7 +21,6 @@
|
||||
#include "OpusHead.hxx"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
struct OpusHead {
|
||||
char signature[8];
|
||||
|
@@ -25,8 +25,6 @@
|
||||
#include "util/ByteReverse.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
#include <glib.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h> /* for SEEK_SET */
|
||||
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#include "config.h"
|
||||
#include "VorbisComments.hxx"
|
||||
#include "XiphTags.hxx"
|
||||
#include "tag/Tag.hxx"
|
||||
#include "tag/TagTable.hxx"
|
||||
#include "tag/TagHandler.hxx"
|
||||
#include "tag/TagBuilder.hxx"
|
||||
@@ -29,7 +28,6 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
@@ -31,7 +31,7 @@ vorbis_comments_to_replay_gain(ReplayGainInfo &rgi, char **comments);
|
||||
|
||||
void
|
||||
vorbis_comments_scan(char **comments,
|
||||
const struct tag_handler *handler, void *handler_ctx);
|
||||
const tag_handler *handler, void *handler_ctx);
|
||||
|
||||
Tag *
|
||||
vorbis_comments_to_tag(char **comments);
|
||||
|
@@ -25,9 +25,7 @@
|
||||
#include "InputStream.hxx"
|
||||
#include "OggCodec.hxx"
|
||||
#include "util/Error.hxx"
|
||||
#include "util/UriUtil.hxx"
|
||||
#include "util/Macros.hxx"
|
||||
#include "system/ByteOrder.hxx"
|
||||
#include "CheckAudioFormat.hxx"
|
||||
#include "tag/TagHandler.hxx"
|
||||
#include "Log.hxx"
|
||||
@@ -48,7 +46,6 @@
|
||||
#define ov_time_seek_page(VF, S) (ov_time_seek_page(VF, (S)*1000))
|
||||
#endif /* HAVE_TREMOR */
|
||||
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
|
||||
struct vorbis_input_stream {
|
||||
|
@@ -22,6 +22,8 @@
|
||||
|
||||
#include "check.h"
|
||||
|
||||
extern const class Domain vorbis_domain;
|
||||
class Domain;
|
||||
|
||||
extern const Domain vorbis_domain;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user