1 //
2 // Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2021
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 //
7 #pragma once
8 
9 #include "td/tl/tl_config.h"
10 #include "td/tl/tl_outputer.h"
11 #include "td/tl/tl_writer.h"
12 
13 #include <string>
14 
15 namespace td {
16 namespace tl {
17 
18 void write_tl(const tl_config &config, tl_outputer &out, const TL_writer &w);
19 
20 tl_config read_tl_config_from_file(const std::string &file_name);
21 
22 bool write_tl_to_file(const tl_config &config, const std::string &file_name, const TL_writer &w);
23 
24 }  // namespace tl
25 }  // namespace td
26