libcdio  2.1.0
udf_time.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2005, 2008, 2012 Rocky Bernstein <rocky@gnu.org>
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17 
25 #ifndef UDF_TIME_H
26 #define UDF_TIME_H
27 
28 #include <time.h>
29 
30 #if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) && !defined(__struct_timespec_defined)
31 struct timespec {
32  time_t tv_sec; /* Seconds */
33  long tv_nsec; /* Nanoseconds */
34 };
35 #endif
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif /* __cplusplus */
40 
44  time_t udf_get_access_time(const udf_dirent_t *p_udf_dirent);
45 
49  time_t udf_get_attribute_time(const udf_dirent_t *p_udf_dirent);
50 
54  time_t udf_get_modification_time(const udf_dirent_t *p_udf_dirent);
55 
60 
65  *p_udf_dirent);
66 
71 
75  time_t *udf_stamp_to_time(time_t *dest, long int *dest_usec,
76  const udf_timestamp_t src);
77 
78  udf_timestamp_t *udf_timespec_to_stamp(const struct timespec ts,
79  udf_timestamp_t *dest);
80 
81 #ifdef __cplusplus
82 }
83 #endif /* __cplusplus */
84 
85 #endif /*UDF_TIME_H*/
time_t udf_get_modification_time(const udf_dirent_t *p_udf_dirent)
udf_timestamp_t * udf_get_attr_timestamp(const udf_dirent_t *p_udf_dirent)
time_t udf_get_access_time(const udf_dirent_t *p_udf_dirent)
udf_timestamp_t * udf_get_modification_timestamp(const udf_dirent_t *p_udf_dirent)
Definition: udf.h:39
udf_timestamp_t * udf_timespec_to_stamp(const struct timespec ts, udf_timestamp_t *dest)
udf_timestamp_t * udf_get_access_timestamp(const udf_dirent_t *p_udf_dirent)
time_t udf_get_attribute_time(const udf_dirent_t *p_udf_dirent)
Definition: ecma_167.h:129
time_t * udf_stamp_to_time(time_t *dest, long int *dest_usec, const udf_timestamp_t src)