Cleanup Snapserver includes

This commit is contained in:
badaix 2024-04-04 19:02:45 +02:00
parent d1a4677970
commit 6f040d3d22
53 changed files with 234 additions and 245 deletions

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,11 +16,16 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
// prototype/interface header file
#include "config.hpp"
// local headers
#include "common/aixlog.hpp"
#include "common/snap_exception.hpp"
#include "common/str_compat.hpp"
#include "common/utils/file_utils.hpp"
// standard headers
#include <cerrno>
#include <fcntl.h>
#include <fstream>

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,19 +16,21 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef CONFIG_HPP
#define CONFIG_HPP
#pragma once
// local headers
#include "common/json.hpp"
#include "common/utils.hpp"
#include "common/utils/string_utils.hpp"
// standard headers
#include <memory>
#include <mutex>
#include <string>
#include <sys/time.h>
#include <vector>
#include "common/json.hpp"
#include "common/utils.hpp"
#include "common/utils/string_utils.hpp"
namespace strutils = utils::string;
using json = nlohmann::json;
@ -404,6 +406,3 @@ private:
std::mutex client_mutex_;
std::string filename_;
};
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2023 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -21,19 +21,16 @@
// local headers
#include "common/aixlog.hpp"
#include "common/message/time.hpp"
#include "common/snap_exception.hpp"
#include "common/utils.hpp"
#include "config.hpp"
#include "common/json.hpp"
#include "control_session_http.hpp"
#include "control_session_tcp.hpp"
#include "jsonrpcpp.hpp"
// 3rd party headers
// standard headers
#include <iostream>
using namespace std;
using json = nlohmann::json;

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2022 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,8 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef CONTROL_SESSION_TCP_HPP
#define CONTROL_SESSION_TCP_HPP
#pragma once
// local headers
#include "control_session.hpp"
@ -60,7 +60,3 @@ protected:
boost::asio::strand<boost::asio::any_io_executor> strand_;
std::deque<std::string> messages_;
};
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2022 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,8 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef CONTROL_SESSION_WS_HPP
#define CONTROL_SESSION_WS_HPP
#pragma once
// local headers
#include "control_session.hpp"
@ -73,7 +73,3 @@ protected:
boost::asio::strand<boost::asio::any_io_executor> strand_;
std::deque<std::string> messages_;
};
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2023 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,8 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef ENCODER_HPP
#define ENCODER_HPP
#pragma once
// local headers
#include "common/message/codec_header.hpp"
@ -91,5 +90,3 @@ protected:
};
} // namespace encoder
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,7 +16,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
// prototype/interface header file
#include "encoder_factory.hpp"
// local headers
#include "null_encoder.hpp"
#include "pcm_encoder.hpp"
#if defined(HAS_OGG) && defined(HAS_VORBIS) && defined(HAS_VORBIS_ENC)
@ -28,7 +31,6 @@
#if defined(HAS_OPUS)
#include "opus_encoder.hpp"
#endif
#include "common/aixlog.hpp"
#include "common/snap_exception.hpp"
#include "common/utils/string_utils.hpp"

View file

@ -1,10 +1,31 @@
#ifndef ENCODER_FACTORY_H
#define ENCODER_FACTORY_H
/***
This file is part of snapcast
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#pragma once
// local headers
#include "encoder.hpp"
// standard headers
#include <memory>
#include <string>
namespace encoder
{
@ -16,5 +37,3 @@ public:
};
} // namespace encoder
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,12 +16,21 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#include <iostream>
// prototype/interface header file
#include "flac_encoder.hpp"
// local headers
#include "common/aixlog.hpp"
#include "common/snap_exception.hpp"
#include "common/str_compat.hpp"
#include "flac_encoder.hpp"
// 3rd party headers
#include "FLAC/metadata.h"
// standard headers
#include <iostream>
using namespace std;

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2020 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,16 +16,19 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef FLAC_ENCODER_HPP
#define FLAC_ENCODER_HPP
#pragma once
// local headers
#include "encoder.hpp"
// 3rd party headers
#include "FLAC/stream_encoder.h"
// standard headers
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "FLAC/metadata.h"
#include "FLAC/stream_encoder.h"
namespace encoder
{
@ -56,5 +59,3 @@ protected:
};
} // namespace encoder
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2020 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,7 +16,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
// prototype/interface header file
#include "null_encoder.hpp"
// local headers
#include "common/aixlog.hpp"

View file

@ -16,10 +16,12 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef NULL_ENCODER_HPP
#define NULL_ENCODER_HPP
#pragma once
// local headers
#include "encoder.hpp"
namespace encoder
{
@ -44,5 +46,3 @@ protected:
};
} // namespace encoder
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,15 +16,19 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#include <cstring>
#include <iostream>
// prototype/interface header file
#include "ogg_encoder.hpp"
// local headers
#include "common/aixlog.hpp"
#include "common/snap_exception.hpp"
#include "common/str_compat.hpp"
#include "common/utils.hpp"
#include "common/utils/string_utils.hpp"
#include "ogg_encoder.hpp"
// standard headers
#include <cstring>
#include <iostream>
using namespace std;

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2020 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,12 +16,16 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef OGG_ENCODER_HPP
#define OGG_ENCODER_HPP
#pragma once
// local headers
#include "encoder.hpp"
// 3rd party headers
#include <ogg/ogg.h>
#include <vorbis/vorbisenc.h>
namespace encoder
{
@ -54,5 +58,3 @@ private:
};
} // namespace encoder
#endif

View file

@ -1,7 +1,7 @@
/***
This file is part of snapcast
Copyright (C) 2015 Hannes Ellinger
Copyright (C) 2016-2021 Johannes Pohl
Copyright (C) 2016-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -17,12 +17,16 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
// prototype/interface header file
#include "opus_encoder.hpp"
// local headers
#include "common/aixlog.hpp"
#include "common/snap_exception.hpp"
#include "common/str_compat.hpp"
#include "common/utils/string_utils.hpp"
using namespace std;
namespace encoder

View file

@ -1,6 +1,7 @@
/***
This file is part of snapcast
Copyright (C) 2015 Hannes Ellinger
Copyright (C) 2016-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,11 +17,13 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef OPUS_ENCODER_HPP
#define OPUS_ENCODER_HPP
#pragma once
// local headers
#include "common/resampler.hpp"
#include "encoder.hpp"
// 3rd party headers
#include <opus/opus.h>
@ -49,5 +52,3 @@ protected:
};
} // namespace encoder
#endif

View file

@ -16,9 +16,14 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
// prototype/interface header file
#include "pcm_encoder.hpp"
// local headers
#include "common/aixlog.hpp"
#include "common/endian.hpp"
// standard headers
#include <memory>

View file

@ -16,10 +16,12 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef PCM_ENCODER_HPP
#define PCM_ENCODER_HPP
#pragma once
// local headers
#include "encoder.hpp"
namespace encoder
{
@ -35,5 +37,3 @@ protected:
};
} // namespace encoder
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,8 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef IMAGE_CACHE_HPP
#define IMAGE_CACHE_HPP
#pragma once
// 3rd party headers
@ -25,11 +24,9 @@
#include <boost/uuid/detail/md5.hpp>
// standard headers
#include <iostream>
#include <map>
#include <mutex>
#include <optional>
#include <regex>
#include <string>
@ -95,6 +92,3 @@ private:
std::map<std::string, std::string> url_to_data_;
std::mutex mutex_;
};
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2022 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -25,8 +25,6 @@
// 3rd party headers
// standard headers
#include <cstdio>
#include <cstdlib>
static constexpr auto LOG_TAG = "Avahi";

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2022 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,9 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#pragma once
#ifndef PUBLISH_AVAHI_HPP
#define PUBLISH_AVAHI_HPP
// local headers
@ -33,10 +32,10 @@
#include <boost/asio/steady_timer.hpp>
// standard headers
#include <atomic>
#include <string>
#include <vector>
class PublishAvahi;
#include "publish_mdns.hpp"
@ -57,6 +56,3 @@ private:
std::vector<mDNSService> services_;
boost::asio::steady_timer timer_;
};
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2022 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,9 +16,12 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#pragma once
#ifndef PUBLISH_BONJOUR_HPP
#define PUBLISH_BONJOUR_HPP
class PublishBonjour;
// local headers
#include "publish_mdns.hpp"
// 3rd party headers
#include <dns_sd.h>
@ -27,9 +30,6 @@
#include <string>
#include <thread>
class PublishBonjour;
#include "publish_mdns.hpp"
class PublishBonjour : public PublishmDNS
{
@ -44,6 +44,3 @@ private:
std::atomic<bool> active_;
std::vector<DNSServiceRef> clients;
};
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2022 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,8 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef PUBLISH_MDNS_HPP
#define PUBLISH_MDNS_HPP
#pragma once
// 3rd party headers
#include <boost/asio/io_context.hpp>
@ -61,5 +61,3 @@ using PublishZeroConf = PublishAvahi;
#include "publish_bonjour.hpp"
using PublishZeroConf = PublishBonjour;
#endif
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2023 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -21,13 +21,13 @@
// local headers
#include "common/aixlog.hpp"
#include "common/message/pcm_chunk.hpp"
// 3rd party headers
// standard headers
#include <iostream>
using namespace std;
using namespace streamreader;

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2022 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,8 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef STREAM_SESSION_TCP_HPP
#define STREAM_SESSION_TCP_HPP
#pragma once
// local headers
#include "stream_session.hpp"
@ -53,7 +53,3 @@ protected:
private:
tcp::socket socket_;
};
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2022 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,8 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef STREAM_SESSION_WS_HPP
#define STREAM_SESSION_WS_HPP
#pragma once
// local headers
#include "stream_session.hpp"
@ -35,7 +35,7 @@
#include <boost/beast/websocket.hpp>
// standard headers
#include <deque>
namespace beast = boost::beast; // from <boost/beast.hpp>
// namespace http = beast::http; // from <boost/beast/http.hpp>
@ -69,7 +69,3 @@ protected:
protected:
beast::flat_buffer buffer_;
};
#endif

View file

@ -16,8 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef AIRPLAY_STREAM_HPP
#define AIRPLAY_STREAM_HPP
#pragma once
// local headers
#include "process_stream.hpp"
@ -107,5 +107,3 @@ private:
};
} // namespace streamreader
#endif

View file

@ -16,8 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef ALSA_STREAM_HPP
#define ALSA_STREAM_HPP
#pragma once
// local headers
#include "pcm_stream.hpp"
@ -68,5 +68,3 @@ protected:
};
} // namespace streamreader
#endif

View file

@ -16,8 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef ASIO_STREAM_HPP
#define ASIO_STREAM_HPP
#pragma once
// local headers
#include "common/aixlog.hpp"
@ -30,7 +30,6 @@
#include <boost/asio/steady_timer.hpp>
// standard headers
#include <atomic>
namespace streamreader
@ -268,5 +267,3 @@ void AsioStream<ReadStream>::do_read()
}
} // namespace streamreader
#endif

View file

@ -24,6 +24,7 @@
René Nyffenegger rene.nyffenegger@adp-gmbh.ch
*/
#include "base64.h"
static const std::string base64_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

View file

@ -16,10 +16,9 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef BASE64_H
#define BASE64_H
#pragma once
#include <string>
std::string base64_encode(unsigned char const* bytes_to_encode, unsigned int in_len);
std::string base64_decode(std::string const& encoded_string);
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,8 +16,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
// prototype/interface header file
#include "control_error.hpp"
namespace snapcast::error::control
{

View file

@ -16,8 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef FILE_STREAM_HPP
#define FILE_STREAM_HPP
#pragma once
// local headers
#include "asio_stream.hpp"
@ -44,5 +44,3 @@ protected:
};
} // namespace streamreader
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,8 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef SPOTIFY_STREAM_HPP
#define SPOTIFY_STREAM_HPP
#pragma once
// local headers
#include "process_stream.hpp"
@ -48,5 +48,3 @@ protected:
};
} // namespace streamreader
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -23,7 +23,6 @@
#include "common/aixlog.hpp"
#include "common/snap_exception.hpp"
#include "common/utils/string_utils.hpp"
#include "encoder/encoder_factory.hpp"
using namespace std;

View file

@ -16,8 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef META_STREAM_HPP
#define META_STREAM_HPP
#pragma once
// local headers
#include "common/resampler.hpp"
@ -84,5 +84,3 @@ protected:
};
} // namespace streamreader
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,8 +16,16 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
// prototype/interface header file
#include "metadata.hpp"
// local headers
#include "common/aixlog.hpp"
// standard headers
#include <set>
static constexpr auto LOG_TAG = "Metadata";

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,16 +16,17 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef METADATA_HPP
#define METADATA_HPP
#pragma once
#include "common/aixlog.hpp"
// local headers
#include "common/json.hpp"
// standard headers
#include <optional>
#include <set>
#include <string>
using json = nlohmann::json;
class Metadata
@ -145,6 +146,3 @@ public:
void fromJson(const json& j);
bool operator==(const Metadata& other) const;
};
#endif

View file

@ -16,8 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef PCM_STREAM_HPP
#define PCM_STREAM_HPP
#pragma once
// local headers
#include "common/error_code.hpp"
@ -207,7 +207,4 @@ protected:
std::vector<char> silent_chunk_;
};
} // namespace streamreader
#endif

View file

@ -16,8 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef PIPE_STREAM_HPP
#define PIPE_STREAM_HPP
#pragma once
// local headers
#include "asio_stream.hpp"
@ -45,5 +45,3 @@ protected:
};
} // namespace streamreader
#endif

View file

@ -25,10 +25,8 @@
#include "common/snap_exception.hpp"
#include "common/utils.hpp"
#include "common/utils/file_utils.hpp"
#include "common/utils/string_utils.hpp"
// standard headers
#include <climits>
#include <cstdio>

View file

@ -16,8 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef PROCESS_STREAM_HPP
#define PROCESS_STREAM_HPP
#pragma once
// local headers
#include "asio_stream.hpp"
@ -26,7 +26,6 @@
// standard headers
#include <memory>
#include <string>
#include <vector>
namespace bp = boost::process;
@ -78,5 +77,3 @@ protected:
};
} // namespace streamreader
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,8 +16,16 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
// prototype/interface header file
#include "properties.hpp"
// local headers
#include "common/aixlog.hpp"
// standard headers
#include <set>
static constexpr auto LOG_TAG = "Properties";
namespace

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,17 +16,15 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef PROPERTIES_HPP
#define PROPERTIES_HPP
#pragma once
// local headers
#include "common/aixlog.hpp"
#include "common/json.hpp"
#include "metadata.hpp"
// standard headers
#include <optional>
#include <set>
#include <string>
@ -191,6 +189,3 @@ public:
void fromJson(const json& j);
bool operator==(const Properties& other) const;
};
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2022 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -22,10 +22,7 @@
// local headers
#include "common/aixlog.hpp"
#include "common/snap_exception.hpp"
#include "common/str_compat.hpp"
#include "common/utils/file_utils.hpp"
#include "common/utils/string_utils.hpp"
#include "encoder/encoder_factory.hpp"
// 3rd party headers
#include <boost/asio/read_until.hpp>

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2022 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,8 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef STREAM_CONTROL_HPP
#define STREAM_CONTROL_HPP
#pragma once
// local headers
#include "jsonrpcpp.hpp"
@ -111,7 +111,4 @@ protected:
bp::opstream in_;
};
} // namespace streamreader
#endif

View file

@ -24,10 +24,8 @@
#ifdef HAS_ALSA
#include "alsa_stream.hpp"
#endif
#include "common/aixlog.hpp"
#include "common/snap_exception.hpp"
#include "common/str_compat.hpp"
#include "common/utils.hpp"
#include "file_stream.hpp"
#include "librespot_stream.hpp"
#include "meta_stream.hpp"

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2022 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,8 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef STREAM_MANAGER_HPP
#define STREAM_MANAGER_HPP
#pragma once
// local headers
#include "pcm_stream.hpp"
@ -59,5 +59,3 @@ private:
};
} // namespace streamreader
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2020 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -20,9 +20,11 @@
#define NOMINMAX
#endif // NOMINMAX
// prototype/interface header file
#include "stream_uri.hpp"
// local headers
#include "common/aixlog.hpp"
#include "common/str_compat.hpp"
#include "common/utils/string_utils.hpp"

View file

@ -16,14 +16,16 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef STREAM_URI_HPP
#define STREAM_URI_HPP
#pragma once
// local headers
#include "common/json.hpp"
// standard headers
#include <map>
#include <string>
#include "common/json.hpp"
using json = nlohmann::json;
@ -59,5 +61,3 @@ struct StreamUri
};
} // namespace streamreader
#endif

View file

@ -16,8 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef TCP_STREAM_HPP
#define TCP_STREAM_HPP
#pragma once
// local headers
#include "asio_stream.hpp"
@ -53,5 +53,3 @@ protected:
};
} // namespace streamreader
#endif

View file

@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2022 Johannes Pohl
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -16,15 +16,14 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef WATCH_DOG_HPP
#define WATCH_DOG_HPP
#pragma once
// 3rd party headers
#include <boost/asio/any_io_executor.hpp>
#include <boost/asio/steady_timer.hpp>
// standard headers
#include <memory>
namespace streamreader
@ -58,5 +57,3 @@ private:
};
} // namespace streamreader
#endif