summaryrefslogtreecommitdiffstats
path: root/xbmc/addons/kodi-addon-dev-kit/include/kodi/Filesystem.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2018-08-30 00:42:04 +0200
committermanuel <manuel@mausz.at>2018-08-30 00:42:04 +0200
commit2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a (patch)
treecc9e1f8ea69eebca8416677b2470a5b3f11a850e /xbmc/addons/kodi-addon-dev-kit/include/kodi/Filesystem.h
parentb3d195f0188758a14875a5a2f270e4fd190a679f (diff)
downloadkodi-pvr-build-2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a.tar.gz
kodi-pvr-build-2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a.tar.bz2
kodi-pvr-build-2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a.zip
sync with upstream
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/Filesystem.h')
-rw-r--r--xbmc/addons/kodi-addon-dev-kit/include/kodi/Filesystem.h31
1 files changed, 10 insertions, 21 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/Filesystem.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/Filesystem.h
index b089da3..3df6cec 100644
--- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/Filesystem.h
+++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/Filesystem.h
@@ -1,24 +1,13 @@
1#pragma once
2/* 1/*
3 * Copyright (C) 2005-2017 Team Kodi 2 * Copyright (C) 2005-2018 Team Kodi
4 * http://kodi.tv 3 * This file is part of Kodi - https://kodi.tv
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 2, or (at your option)
9 * 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 Kodi; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
19 * 4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
20 */ 7 */
21 8
9#pragma once
10
22#include "AddonBase.h" 11#include "AddonBase.h"
23 12
24#include <map> 13#include <map>
@@ -40,7 +29,7 @@
40 #define _SSIZE_T_DEFINED 29 #define _SSIZE_T_DEFINED
41#endif // !_SSIZE_T_DEFINED 30#endif // !_SSIZE_T_DEFINED
42#endif 31#endif
43 32
44#ifndef S_ISDIR 33#ifndef S_ISDIR
45 #define S_ISDIR(mode) ((((mode)) & 0170000) == (0040000)) 34 #define S_ISDIR(mode) ((((mode)) & 0170000) == (0040000))
46#endif 35#endif
@@ -895,7 +884,7 @@ namespace vfs
895 return strReturn; 884 return strReturn;
896 } 885 }
897 //---------------------------------------------------------------------------- 886 //----------------------------------------------------------------------------
898 887
899 //============================================================================ 888 //============================================================================
900 /// 889 ///
901 /// @ingroup cpp_kodi_vfs 890 /// @ingroup cpp_kodi_vfs
@@ -1231,7 +1220,7 @@ namespace vfs
1231 /// @ingroup cpp_kodi_vfs_CFile 1220 /// @ingroup cpp_kodi_vfs_CFile
1232 /// @brief Construct a new, unopened file 1221 /// @brief Construct a new, unopened file
1233 /// 1222 ///
1234 CFile() : m_file(nullptr) { } 1223 CFile() = default;
1235 //-------------------------------------------------------------------------- 1224 //--------------------------------------------------------------------------
1236 1225
1237 //========================================================================== 1226 //==========================================================================
@@ -1637,7 +1626,7 @@ namespace vfs
1637 //-------------------------------------------------------------------------- 1626 //--------------------------------------------------------------------------
1638 1627
1639 private: 1628 private:
1640 void* m_file; 1629 void* m_file = nullptr;
1641 }; 1630 };
1642 //@} 1631 //@}
1643 //---------------------------------------------------------------------------- 1632 //----------------------------------------------------------------------------