Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
Filesystem.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
4 * SPDX-FileCopyrightText: (C) 2021 Barrier Contributors
5 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
6 */
7
8#pragma once
9
10#include <cstdio>
11#include <filesystem>
12#include <ios>
13#include <iosfwd>
14
15namespace deskflow {
16
17namespace fs = std::filesystem;
18
19void openUtf8Path(std::ifstream &stream, const fs::path &path, std::ios_base::openmode mode = std::ios_base::in);
20void openUtf8Path(std::ofstream &stream, const fs::path &path, std::ios_base::openmode mode = std::ios_base::out);
21void openUtf8Path(
22 std::fstream &stream, const fs::path &path, std::ios_base::openmode mode = std::ios_base::in | std::ios_base::out
23);
24
25std::FILE *fopenUtf8Path(const fs::path &path, const std::string &mode);
26
27} // namespace deskflow
Definition EventTypes.h:11
std::FILE * fopenUtf8Path(const fs::path &path, const std::string &mode)
Definition Filesystem.cpp:40
void openUtf8Path(std::ifstream &stream, const fs::path &path, std::ios_base::openmode mode)
Definition Filesystem.cpp:25