kodi
Filesystem.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include <cstdint>
12 #include <string>
13 #include <system_error>
14 namespace KODI
15 {
16 namespace PLATFORM
17 {
18 namespace FILESYSTEM
19 {
20 struct space_info {
21  std::uintmax_t capacity;
22  std::uintmax_t free;
23  std::uintmax_t available;
24 };
25 
26 space_info space(const std::string &path, std::error_code &ec);
27 
28 std::string temp_directory_path(std::error_code &ec);
29 std::string create_temp_directory(std::error_code &ec);
30 std::string temp_file_path(const std::string& suffix, std::error_code& ec);
31 }
32 }
33 }
Definition: Filesystem.h:20
Definition: AudioDecoder.h:18