X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=shell%2Fserver.h;h=a8241813915836d0b5af3e223802fba288feb01a;hb=326655801387a37d8b21c3e06890fd06b3ffd0eb;hp=53b2c66c53a8bb676c70ae0c515a9d3e3ea09ac9;hpb=acfc5e815529d35adca06c5fd2a1a657d2cb9dea;p=casparcg diff --git a/shell/server.h b/shell/server.h index 53b2c66c5..a82418139 100644 --- a/shell/server.h +++ b/shell/server.h @@ -1,45 +1,52 @@ -/* -* copyright (c) 2010 Sveriges Television AB -* -* This file is part of CasparCG. -* -* 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 . -* -*/ - -#pragma once - -#include - -#include - -#include - -namespace caspar { - -namespace core { - class video_channel; -} - -class server : 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