Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
Stat.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 "AddonClass.h"
12#include "LanguageHook.h"
13#include "filesystem/File.h"
14
15namespace XBMCAddon
16{
17 namespace xbmcvfs
18 {
19 //
43 //
44 class Stat : public AddonClass
45 {
46 struct __stat64 st;
47
48 public:
49 Stat(const String& path)
50 {
51 DelayedCallGuard dg;
52 XFILE::CFile::Stat(path, &st);
53 }
54
55#ifdef DOXYGEN_SHOULD_USE_THIS
64#else
65 inline long long st_mode() { return st.st_mode; }
66#endif
67
68#ifdef DOXYGEN_SHOULD_USE_THIS
77#else
78 inline long long st_ino() { return st.st_ino; }
79#endif
80
81#ifdef DOXYGEN_SHOULD_USE_THIS
92#else
93 inline long long st_dev() { return st.st_dev; }
94#endif
95
96#ifdef DOXYGEN_SHOULD_USE_THIS
105#else
106 inline long long st_nlink() { return st.st_nlink; }
107#endif
108
109#ifdef DOXYGEN_SHOULD_USE_THIS
118#else
119 inline long long st_uid() { return st.st_uid; }
120#endif
121
122#ifdef DOXYGEN_SHOULD_USE_THIS
131#else
132 inline long long st_gid() { return st.st_gid; }
133#endif
134
135#ifdef DOXYGEN_SHOULD_USE_THIS
149#else
150 inline long long st_size() { return st.st_size; }
151#endif
152
153#ifdef DOXYGEN_SHOULD_USE_THIS
162#else
163 inline long long atime() { return st.st_atime; }; //names st_atime/st_mtime/st_ctime are used by sys/stat.h
164#endif
165
166#ifdef DOXYGEN_SHOULD_USE_THIS
175#else
176 inline long long mtime() { return st.st_mtime; }
177#endif
178
179#ifdef DOXYGEN_SHOULD_USE_THIS
188#else
189 inline long long ctime() { return st.st_ctime; }
190#endif
191 };
193 }
194}
195
Definition Stat.h:45
st_size()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
st_ino()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
st_dev()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
st_mode()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
st_ctime()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
st_atime()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
st_mtime()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
st_uid()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
st_nlink()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
st_gid()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...