X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=shell%2Fserver.h;h=a8241813915836d0b5af3e223802fba288feb01a;hb=a660f13c38fbd89c3db2169449baa5e2268db815;hp=4506b01be4b82836c58f3ad92fc79f8d414ed704;hpb=0f1001a16b258b8426f3373be72067d7e947d94c;p=casparcg diff --git a/shell/server.h b/shell/server.h index 4506b01be..a82418139 100644 --- a/shell/server.h +++ b/shell/server.h @@ -1,46 +1,52 @@ -/* -* Copyright (c) 2011 Sveriges Television AB -* -* This file is part of CasparCG (www.casparcg.com). -* -* CasparCG 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. -* -* CasparCG 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 CasparCG. If not, see . -* -* Author: Robert Nagy, ronag89@gmail.com -*/ - -#pragma once - -#include - -#include - -#include - -namespace caspar { - -namespace core { - class video_channel; -} - -class server sealed : boost::noncopyable -{ -public: - server(); - const std::vector> get_channels() const; -private: - struct implementation; - safe_ptr impl_; -}; - +/* +* Copyright (c) 2011 Sveriges Television AB +* +* This file is part of CasparCG (www.casparcg.com). +* +* CasparCG 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. +* +* CasparCG 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 CasparCG. If not, see . +* +* Author: Robert Nagy, ronag89@gmail.com +*/ + +#pragma once + +#include +#include + +#include +#include + +#include + +#include + +FORWARD3(caspar, protocol, amcp, class amcp_command_repository); + +namespace caspar { + +class server final : public boost::noncopyable +{ +public: + explicit server(std::promise& shutdown_server_now); + void start(); + spl::shared_ptr get_system_info_provider_repo() const; + spl::shared_ptr get_amcp_command_repository() const; + + core::monitor::subject& monitor_output(); +private: + struct impl; + spl::shared_ptr impl_; +}; + } \ No newline at end of file