Clean up asio includes

This commit is contained in:
badaix 2022-01-31 21:07:34 +01:00
parent 4f29f000de
commit caef2b7b87
25 changed files with 120 additions and 74 deletions

View file

@ -1,6 +1,6 @@
/***
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
it under the terms of the GNU General Public License as published by
@ -24,7 +24,9 @@
// 3rd party headers
#include <alsa/asoundlib.h>
#include <boost/asio.hpp>
#include <boost/asio/io_context.hpp>
#include <boost/asio/steady_timer.hpp>
namespace streamreader
{

View file

@ -1,6 +1,6 @@
/***
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
it under the terms of the GNU General Public License as published by
@ -25,7 +25,9 @@
#include "pcm_stream.hpp"
// 3rd party headers
#include <boost/asio.hpp>
#include <boost/asio/io_context.hpp>
#include <boost/asio/read.hpp>
#include <boost/asio/steady_timer.hpp>
// standard headers
#include <atomic>

View file

@ -1,6 +1,6 @@
/***
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
it under the terms of the GNU General Public License as published by
@ -43,7 +43,6 @@
#include <vector>
namespace net = boost::asio;
using json = nlohmann::json;
@ -180,7 +179,7 @@ protected:
/// Send request to stream control script
void sendRequest(const std::string& method, const jsonrpcpp::Parameter& params, ResultHandler handler);
net::strand<net::any_io_executor> strand_;
boost::asio::strand<boost::asio::any_io_executor> strand_;
std::chrono::time_point<std::chrono::steady_clock> tvEncodedChunk_;
std::vector<PcmStream::Listener*> pcmListeners_;
StreamUri uri_;

View file

@ -27,6 +27,9 @@
#include "common/utils/string_utils.hpp"
#include "encoder/encoder_factory.hpp"
// 3rd party headers
#include <boost/asio/read_until.hpp>
// standard headers
#include <memory>

View file

@ -33,7 +33,7 @@
#pragma GCC diagnostic ignored "-Wc++11-narrowing"
#include <boost/process.hpp>
#pragma GCC diagnostic pop
#include <boost/asio.hpp>
#include <boost/asio/any_io_executor.hpp>
// standard headers
#include <map>
@ -41,7 +41,6 @@
namespace bp = boost::process;
namespace net = boost::asio;
using json = nlohmann::json;

View file

@ -1,6 +1,6 @@
/***
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
it under the terms of the GNU General Public License as published by
@ -22,6 +22,9 @@
// local headers
#include "asio_stream.hpp"
// 3rd party headers
#include <boost/asio/ip/tcp.hpp>
using boost::asio::ip::tcp;
namespace streamreader

View file

@ -20,12 +20,12 @@
#define WATCH_DOG_HPP
// 3rd party headers
#include <boost/asio.hpp>
#include <boost/asio/any_io_executor.hpp>
#include <boost/asio/steady_timer.hpp>
// standard headers
#include <memory>
namespace net = boost::asio;
namespace streamreader
{