Reorder header includes

This commit is contained in:
badaix 2022-01-30 21:45:00 +01:00
parent 847546b182
commit 989eb6ec8e
38 changed files with 330 additions and 104 deletions

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 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/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
***/ ***/
// prototype/interface header file
#include "client_connection.hpp" #include "client_connection.hpp"
// local headers
#include "common/aixlog.hpp" #include "common/aixlog.hpp"
#include "common/snap_exception.hpp" #include "common/snap_exception.hpp"
#include "common/str_compat.hpp" #include "common/str_compat.hpp"
#include "message/hello.hpp" #include "message/hello.hpp"
// standard headers
#include <iostream> #include <iostream>
#include <mutex> #include <mutex>

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -16,16 +16,20 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
***/ ***/
#ifndef CLIENT_CONNECTION_H #ifndef CLIENT_CONNECTION_HPP
#define CLIENT_CONNECTION_H #define CLIENT_CONNECTION_HPP
// local headers
#include "client_settings.hpp" #include "client_settings.hpp"
#include "common/time_defs.hpp" #include "common/time_defs.hpp"
#include "message/factory.hpp" #include "message/factory.hpp"
#include "message/message.hpp" #include "message/message.hpp"
#include <atomic> // 3rd party headers
#include <boost/asio.hpp> #include <boost/asio.hpp>
// standard headers
#include <atomic>
#include <condition_variable> #include <condition_variable>
#include <deque> #include <deque>
#include <memory> #include <memory>

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -20,7 +20,10 @@
#define NOMINMAX #define NOMINMAX
#endif // NOMINMAX #endif // NOMINMAX
// prototype/interface header file
#include "controller.hpp" #include "controller.hpp"
// local headers
#include "decoder/pcm_decoder.hpp" #include "decoder/pcm_decoder.hpp"
#if defined(HAS_OGG) && (defined(HAS_TREMOR) || defined(HAS_VORBIS)) #if defined(HAS_OGG) && (defined(HAS_TREMOR) || defined(HAS_VORBIS))
#include "decoder/ogg_decoder.hpp" #include "decoder/ogg_decoder.hpp"
@ -60,6 +63,7 @@
#include "message/time.hpp" #include "message/time.hpp"
#include "time_provider.hpp" #include "time_provider.hpp"
// standard headers
#include <algorithm> #include <algorithm>
#include <iostream> #include <iostream>
#include <memory> #include <memory>

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -16,13 +16,20 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
***/ ***/
// prototype/interface header file
#include "alsa_player.hpp" #include "alsa_player.hpp"
// local headers
#include "common/aixlog.hpp" #include "common/aixlog.hpp"
#include "common/snap_exception.hpp" #include "common/snap_exception.hpp"
#include "common/str_compat.hpp" #include "common/str_compat.hpp"
#include "common/utils/logging.hpp" #include "common/utils/logging.hpp"
#include "common/utils/string_utils.hpp" #include "common/utils/string_utils.hpp"
// 3rd party headers
// standard headers
using namespace std::chrono_literals; using namespace std::chrono_literals;
using namespace std; using namespace std;

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2020 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -19,9 +19,13 @@
#ifndef ALSA_PLAYER_HPP #ifndef ALSA_PLAYER_HPP
#define ALSA_PLAYER_HPP #define ALSA_PLAYER_HPP
// local headers
#include "player.hpp" #include "player.hpp"
// 3rd party headers
#include <alsa/asoundlib.h> #include <alsa/asoundlib.h>
// standard headers
#include <chrono> #include <chrono>
#include <optional> #include <optional>

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2020 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -19,11 +19,14 @@
#ifndef CORE_AUDIO_PLAYER_HPP #ifndef CORE_AUDIO_PLAYER_HPP
#define CORE_AUDIO_PLAYER_HPP #define CORE_AUDIO_PLAYER_HPP
// local headers
#include "player.hpp"
// 3rd party headers
#include <AudioToolbox/AudioQueue.h> #include <AudioToolbox/AudioQueue.h>
#include <CoreAudio/CoreAudioTypes.h> #include <CoreAudio/CoreAudioTypes.h>
#include <CoreFoundation/CFRunLoop.h> #include <CoreFoundation/CFRunLoop.h>
#include "player.hpp"
namespace player namespace player
{ {

View file

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

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2020 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -19,7 +19,12 @@
#ifndef FILE_PLAYER_HPP #ifndef FILE_PLAYER_HPP
#define FILE_PLAYER_HPP #define FILE_PLAYER_HPP
// local headers
#include "player.hpp" #include "player.hpp"
// 3rd party headers
// standard headers
#include <cstdio> #include <cstdio>
#include <memory> #include <memory>

View file

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

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2020 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -19,10 +19,15 @@
#ifndef OBOE_PLAYER_HPP #ifndef OBOE_PLAYER_HPP
#define OBOE_PLAYER_HPP #define OBOE_PLAYER_HPP
// local headers
#include "player.hpp"
// 3rd party headers
#include <oboe/LatencyTuner.h> #include <oboe/LatencyTuner.h>
#include <oboe/Oboe.h> #include <oboe/Oboe.h>
#include "player.hpp" // standard headers
namespace player namespace player
{ {

View file

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

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2020 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -19,11 +19,16 @@
#ifndef OPEN_SL_PLAYER_HPP #ifndef OPEN_SL_PLAYER_HPP
#define OPEN_SL_PLAYER_HPP #define OPEN_SL_PLAYER_HPP
// local headers
#include "player.hpp"
// 3rd party headers
#include <SLES/OpenSLES.h> #include <SLES/OpenSLES.h>
#include <SLES/OpenSLES_Android.h> #include <SLES/OpenSLES_Android.h>
// standard headers
#include <string> #include <string>
#include "player.hpp"
namespace player namespace player
{ {

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -16,9 +16,16 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
***/ ***/
#include <cmath> // prototype/interface header file
#include <iostream> #include "player.hpp"
// local headers
#include "common/aixlog.hpp"
#include "common/snap_exception.hpp"
#include "common/str_compat.hpp"
#include "common/utils/string_utils.hpp"
// 3rd party headers
#ifdef WINDOWS #ifdef WINDOWS
#include <cstdlib> #include <cstdlib>
#else #else
@ -35,11 +42,9 @@
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif #endif
#include "common/aixlog.hpp" // standard headers
#include "common/snap_exception.hpp" #include <cmath>
#include "common/str_compat.hpp" #include <iostream>
#include "common/utils/string_utils.hpp"
#include "player.hpp"
using namespace std; using namespace std;

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -19,13 +19,16 @@
#ifndef PLAYER_HPP #ifndef PLAYER_HPP
#define PLAYER_HPP #define PLAYER_HPP
// local headers
#include "client_settings.hpp" #include "client_settings.hpp"
#include "common/aixlog.hpp" #include "common/aixlog.hpp"
#include "common/endian.hpp" #include "common/endian.hpp"
#include "stream.hpp" #include "stream.hpp"
// 3rd party headers
#include <boost/asio.hpp> #include <boost/asio.hpp>
// standard headers
#include <atomic> #include <atomic>
#include <functional> #include <functional>
#include <mutex> #include <mutex>

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2020 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -19,13 +19,17 @@
#ifndef PULSE_PLAYER_HPP #ifndef PULSE_PLAYER_HPP
#define PULSE_PLAYER_HPP #define PULSE_PLAYER_HPP
// local headers
#include "player.hpp" #include "player.hpp"
// 3rd party headers
#include <pulse/pulseaudio.h>
// standard headers
#include <atomic> #include <atomic>
#include <cstdio> #include <cstdio>
#include <memory> #include <memory>
#include <optional> #include <optional>
#include <pulse/pulseaudio.h>
namespace player namespace player

View file

@ -1,21 +1,47 @@
/***
This file is part of snapcast
Copyright (C) 2014-2022 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/>.
***/
// prototype/interface header file
#include "wasapi_player.hpp" #include "wasapi_player.hpp"
// local headers
#include "common/aixlog.hpp"
#include "common/snap_exception.hpp"
// 3rd party headers
#include <initguid.h> #include <initguid.h>
#include <mmdeviceapi.h> #include <mmdeviceapi.h>
//#include <functiondiscoverykeys_devpkey.h> //#include <functiondiscoverykeys_devpkey.h>
#include "common/aixlog.hpp"
#include "common/snap_exception.hpp" // standard headers
#include <assert.h>
#include <audioclient.h> #include <audioclient.h>
#include <avrt.h> #include <avrt.h>
#include <chrono>
#include <codecvt>
#include <comdef.h> #include <comdef.h>
#include <comip.h> #include <comip.h>
#include <functional>
#include <ksmedia.h> #include <ksmedia.h>
#include <locale>
#include <mmdeviceapi.h> #include <mmdeviceapi.h>
#include <cassert>
#include <chrono>
#include <codecvt>
#include <functional>
#include <locale>
using namespace std; using namespace std;
using namespace std::chrono; using namespace std::chrono;
using namespace std::chrono_literals; using namespace std::chrono_literals;

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2016 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -22,10 +22,14 @@
#pragma warning(push) #pragma warning(push)
#pragma warning(disable : 4100) #pragma warning(disable : 4100)
// local headers
#include "player.hpp" #include "player.hpp"
// 3rd party headers
#include <audiopolicy.h> #include <audiopolicy.h>
#include <endpointvolume.h> #include <endpointvolume.h>
namespace player namespace player
{ {

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -16,13 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
***/ ***/
#include <chrono> // local headers
#include <iostream>
#ifndef WINDOWS
#include <csignal>
#include <sys/resource.h>
#endif
#include "common/popl.hpp" #include "common/popl.hpp"
#include "controller.hpp" #include "controller.hpp"
@ -46,9 +40,19 @@
#include "common/utils.hpp" #include "common/utils.hpp"
#include "common/version.hpp" #include "common/version.hpp"
// 3rd party headers
#include <boost/asio/ip/host_name.hpp> #include <boost/asio/ip/host_name.hpp>
#include <boost/asio/signal_set.hpp> #include <boost/asio/signal_set.hpp>
// standard headers
#include <chrono>
#include <iostream>
#ifndef WINDOWS
#include <csignal>
#include <sys/resource.h>
#endif
using namespace std; using namespace std;
using namespace popl; using namespace popl;
using namespace player; using namespace player;

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 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/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
***/ ***/
// prototype/interface header file
#include "control_server.hpp" #include "control_server.hpp"
// local headers
#include "common/aixlog.hpp" #include "common/aixlog.hpp"
#include "common/snap_exception.hpp" #include "common/snap_exception.hpp"
#include "common/utils.hpp" #include "common/utils.hpp"
@ -26,6 +29,9 @@
#include "jsonrpcpp.hpp" #include "jsonrpcpp.hpp"
#include "message/time.hpp" #include "message/time.hpp"
// 3rd party headers
// standard headers
#include <iostream> #include <iostream>
using namespace std; using namespace std;

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2020 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -16,15 +16,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
***/ ***/
#ifndef CONTROL_SERVER_H #ifndef CONTROL_SERVER_HPP
#define CONTROL_SERVER_H #define CONTROL_SERVER_HPP
#include <boost/asio.hpp>
#include <memory>
#include <mutex>
#include <set>
#include <vector>
// local headers
#include "common/queue.h" #include "common/queue.h"
#include "common/sample_format.hpp" #include "common/sample_format.hpp"
#include "control_session.hpp" #include "control_session.hpp"
@ -33,6 +28,16 @@
#include "message/server_settings.hpp" #include "message/server_settings.hpp"
#include "server_settings.hpp" #include "server_settings.hpp"
// 3rd party headers
#include <boost/asio.hpp>
// standard headers
#include <memory>
#include <mutex>
#include <set>
#include <vector>
using boost::asio::ip::tcp; using boost::asio::ip::tcp;
using acceptor_ptr = std::unique_ptr<tcp::acceptor>; using acceptor_ptr = std::unique_ptr<tcp::acceptor>;

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -16,14 +16,19 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
***/ ***/
#ifndef CONTROL_SESSION_H #ifndef CONTROL_SESSION_HPP
#define CONTROL_SESSION_H #define CONTROL_SESSION_HPP
// local headers
#include "common/queue.h" #include "common/queue.h"
#include "message/message.hpp" #include "message/message.hpp"
#include "server_settings.hpp" #include "server_settings.hpp"
#include <atomic>
// 3rd party headers
#include <boost/asio.hpp> #include <boost/asio.hpp>
// standard headers
#include <atomic>
#include <condition_variable> #include <condition_variable>
#include <memory> #include <memory>
#include <set> #include <set>

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -19,7 +19,10 @@
#ifndef CONTROL_SESSION_HTTP_HPP #ifndef CONTROL_SESSION_HTTP_HPP
#define CONTROL_SESSION_HTTP_HPP #define CONTROL_SESSION_HTTP_HPP
// local headers
#include "control_session.hpp" #include "control_session.hpp"
// 3rd party headers
#include <boost/beast/core.hpp> #include <boost/beast/core.hpp>
#if defined(__GNUC__) && !defined(__clang__) #if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push #pragma GCC diagnostic push
@ -29,6 +32,8 @@
#else #else
#include <boost/beast/websocket.hpp> #include <boost/beast/websocket.hpp>
#endif #endif
// standard headers
#include <deque> #include <deque>
using boost::asio::ip::tcp; using boost::asio::ip::tcp;

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -16,10 +16,14 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
***/ ***/
// prototype/interface header file
#include "control_session_tcp.hpp" #include "control_session_tcp.hpp"
// local headers
#include "common/aixlog.hpp" #include "common/aixlog.hpp"
#include "message/pcm_chunk.hpp" #include "message/pcm_chunk.hpp"
using namespace std; using namespace std;
static constexpr auto LOG_TAG = "ControlSessionTCP"; static constexpr auto LOG_TAG = "ControlSessionTCP";

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -19,7 +19,13 @@
#ifndef CONTROL_SESSION_TCP_HPP #ifndef CONTROL_SESSION_TCP_HPP
#define CONTROL_SESSION_TCP_HPP #define CONTROL_SESSION_TCP_HPP
// local headers
#include "control_session.hpp" #include "control_session.hpp"
// 3rd party headers
#include <boost/asio.hpp>
// standard headers
#include <deque> #include <deque>
using boost::asio::ip::tcp; using boost::asio::ip::tcp;

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -16,9 +16,14 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
***/ ***/
// local headers
#include "control_session_ws.hpp" #include "control_session_ws.hpp"
#include "common/aixlog.hpp" #include "common/aixlog.hpp"
#include "message/pcm_chunk.hpp" #include "message/pcm_chunk.hpp"
// 3rd party headers
// standard headers
#include <iostream> #include <iostream>
using namespace std; using namespace std;

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -19,9 +19,14 @@
#ifndef CONTROL_SESSION_WS_HPP #ifndef CONTROL_SESSION_WS_HPP
#define CONTROL_SESSION_WS_HPP #define CONTROL_SESSION_WS_HPP
// local headers
#include "control_session.hpp" #include "control_session.hpp"
// 3rd party headers
#include <boost/beast/core.hpp> #include <boost/beast/core.hpp>
#include <boost/beast/websocket.hpp> #include <boost/beast/websocket.hpp>
// standard headers
#include <deque> #include <deque>
namespace beast = boost::beast; // from <boost/beast.hpp> namespace beast = boost::beast; // from <boost/beast.hpp>

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -16,8 +16,15 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
***/ ***/
// prototype/interface header file
#include "publish_avahi.hpp" #include "publish_avahi.hpp"
// local headers
#include "common/aixlog.hpp" #include "common/aixlog.hpp"
// 3rd party headers
// standard headers
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2020 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -17,18 +17,22 @@
***/ ***/
#ifndef PUBLISH_AVAHI_H #ifndef PUBLISH_AVAHI_HPP
#define PUBLISH_AVAHI_H #define PUBLISH_AVAHI_HPP
// local headers
// 3rd party headers
#include <avahi-client/client.h> #include <avahi-client/client.h>
#include <avahi-client/publish.h> #include <avahi-client/publish.h>
#include <atomic>
#include <avahi-common/alternative.h> #include <avahi-common/alternative.h>
#include <avahi-common/error.h> #include <avahi-common/error.h>
#include <avahi-common/malloc.h> #include <avahi-common/malloc.h>
#include <avahi-common/simple-watch.h> #include <avahi-common/simple-watch.h>
#include <avahi-common/timeval.h> #include <avahi-common/timeval.h>
// standard headers
#include <atomic>
#include <string> #include <string>
#include <vector> #include <vector>

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2020 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -16,11 +16,18 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
***/ ***/
// prototype/interface header file
#include "publish_bonjour.hpp"
// local headers
#include "common/aixlog.hpp"
// 3rd party headers
// standard headers
#include <cstdlib> #include <cstdlib>
#include <thread> #include <thread>
#include "common/aixlog.hpp"
#include "publish_bonjour.hpp"
static constexpr auto LOG_TAG = "Bonjour"; static constexpr auto LOG_TAG = "Bonjour";

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2020 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -17,10 +17,13 @@
***/ ***/
#ifndef PUBLISH_BONJOUR_H #ifndef PUBLISH_BONJOUR_HPP
#define PUBLISH_BONJOUR_H #define PUBLISH_BONJOUR_HPP
// 3rd party headers
#include <dns_sd.h> #include <dns_sd.h>
// standard headers
#include <string> #include <string>
class PublishBonjour; class PublishBonjour;

View file

@ -1,7 +1,28 @@
#ifndef PUBLISH_MDNS_H /***
#define PUBLISH_MDNS_H This file is part of snapcast
Copyright (C) 2014-2022 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/>.
***/
#ifndef PUBLISH_MDNS_HPP
#define PUBLISH_MDNS_HPP
// 3rd party headers
#include <boost/asio.hpp> #include <boost/asio.hpp>
// standard headers
#include <string> #include <string>
#include <vector> #include <vector>

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -16,10 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
***/ ***/
#include <chrono> // local headers
#include <memory>
#include <sys/resource.h>
#include "common/popl.hpp" #include "common/popl.hpp"
#ifdef HAS_DAEMON #ifdef HAS_DAEMON
#include "common/daemon.hpp" #include "common/daemon.hpp"
@ -39,8 +36,15 @@
#include "common/aixlog.hpp" #include "common/aixlog.hpp"
#include "config.hpp" #include "config.hpp"
// 3rd party headers
#include <boost/asio/ip/host_name.hpp> #include <boost/asio/ip/host_name.hpp>
// standard headers
#include <chrono>
#include <memory>
#include <sys/resource.h>
using namespace std; using namespace std;
using namespace popl; using namespace popl;

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -19,6 +19,15 @@
#ifndef STREAM_SESSION_HPP #ifndef STREAM_SESSION_HPP
#define STREAM_SESSION_HPP #define STREAM_SESSION_HPP
// local headers
#include "common/queue.h"
#include "message/message.hpp"
#include "streamreader/stream_manager.hpp"
// 3rd party headers
#include <boost/asio.hpp>
// standard headers
#include <atomic> #include <atomic>
#include <condition_variable> #include <condition_variable>
#include <deque> #include <deque>
@ -29,12 +38,6 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include <boost/asio.hpp>
#include "common/queue.h"
#include "message/message.hpp"
#include "streamreader/stream_manager.hpp"
namespace net = boost::asio; namespace net = boost::asio;

View file

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

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2021 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -19,8 +19,13 @@
#ifndef STREAM_SESSION_TCP_HPP #ifndef STREAM_SESSION_TCP_HPP
#define STREAM_SESSION_TCP_HPP #define STREAM_SESSION_TCP_HPP
// local headers
#include "stream_session.hpp" #include "stream_session.hpp"
// 3rd party headers
// standard headers
using boost::asio::ip::tcp; using boost::asio::ip::tcp;

View file

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

View file

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

View file

@ -1,6 +1,6 @@
/*** /***
This file is part of snapcast This file is part of snapcast
Copyright (C) 2014-2020 Johannes Pohl Copyright (C) 2014-2022 Johannes Pohl
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -19,7 +19,10 @@
#ifndef WATCH_DOG_HPP #ifndef WATCH_DOG_HPP
#define WATCH_DOG_HPP #define WATCH_DOG_HPP
// 3rd party headers
#include <boost/asio.hpp> #include <boost/asio.hpp>
// standard headers
#include <memory> #include <memory>
namespace net = boost::asio; namespace net = boost::asio;