X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=common%2Fenv.h;h=9b06fcf3165aea52de92e865ae876238294cad39;hb=1176084924e43ef406dc740246bf018de61f2145;hp=7b4ee55a9da743dfc0571db930a5aabd7babd460;hpb=52b74f3c499e70dc74e9f926b4783968b012cd37;p=casparcg diff --git a/common/env.h b/common/env.h index 7b4ee55a9..9b06fcf31 100644 --- a/common/env.h +++ b/common/env.h @@ -1,39 +1,45 @@ -/* -* 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 - -namespace caspar { namespace env { - -void configure(const std::string& filename); - -const std::wstring& media_folder(); -const std::wstring& log_folder(); -const std::wstring& template_folder(); -const std::wstring& template_host(); -const std::wstring& data_folder(); -const std::wstring& version(); - -const boost::property_tree::ptree& properties(); - -} } \ No newline at end of file +/* +* 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 + +namespace caspar { namespace env { + +void configure(const std::wstring& filename); + +const std::wstring& initial_folder(); +const std::wstring& media_folder(); +const std::wstring& log_folder(); +const std::wstring& template_folder(); +const std::wstring& data_folder(); +const std::wstring& thumbnail_folder(); +const std::wstring& font_folder(); +const std::wstring& version(); + +const boost::property_tree::wptree& properties(); + +void log_configuration_warnings(); + +} }