blob: 4f0858fb8cb7ee9c3e06604cac8abd54d82350c2 [file] [log] [blame]
Aline Gondim Santos607635b2022-08-22 15:40:59 -03001/**
2 * Copyright (C) 2022 Savoir-faire Linux Inc.
3 *
4 * Author: Aline Gondim Santos <aline.gondimsantos@savoirfairelinux.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21#ifndef COMMON_H
22#define COMMON_H
23
Aline Gondim Santos9bd153e2022-08-25 10:49:23 -030024#include <fstream>
Aline Gondim Santos607635b2022-08-22 15:40:59 -030025#include <string>
26
27namespace string_utils {
Aline Gondim Santos4b62db12022-10-06 18:20:07 -030028#ifdef WIN32
Aline Gondim Santos607635b2022-08-22 15:40:59 -030029std::wstring to_wstring(const std::string& str);
Aline Gondim Santos607635b2022-08-22 15:40:59 -030030#endif // WIN32
Aline Gondim Santos4b62db12022-10-06 18:20:07 -030031void ffmpegFormatStringInline(std::string& str);
32std::string ffmpegFormatString(const std::string& str);
33} // namespace string_utils
Aline Gondim Santos9bd153e2022-08-25 10:49:23 -030034
35namespace file_utils {
36void openStream(std::ifstream& file, const std::string& path);
37}
Aline Gondim Santos607635b2022-08-22 15:40:59 -030038#endif // COMMON_H