matrix_thing/include/matrix/fat_strings.hpp
2019-09-02 12:03:48 -07:00

45 lines
1.4 KiB
C++

/**
This file is a part of rexy's matrix client
Copyright (C) 2019 rexy712
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef FAT_STRINGS_HPP
#define FAT_STRINGS_HPP
//Moved all the really thicc templates into this separate support file
//so that rebuilding matrix.cpp would not take 10 seconds each time
//these functions should rarely change, so it will still build slowly
//but will rarely need rebuilt
#include "raii/string.hpp"
struct image_info;
struct video_info;
struct file_info;
struct audio_info;
namespace matrix::detail{
raii::string _image_body(const image_info& image);
raii::string _video_body(const video_info& video);
raii::string _file_body(const file_info& video);
raii::string _audio_body(const audio_info& audio);
raii::string _message_body(const raii::string_base& text);
}
#endif