aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf/udfdecl.h
diff options
context:
space:
mode:
authorMarcin Slusarz <marcin.slusarz@gmail.com>2008-02-10 05:25:31 -0500
committerJan Kara <jack@suse.cz>2008-04-17 08:22:29 -0400
commit56774805d5eeecd3f1fb700603e593a35dc523c8 (patch)
tree525665c2a2b4fe93cf4a74b8c50332e70acf357f /fs/udf/udfdecl.h
parentcbf5676a0e0463f05e5073589f3194846dfb02e7 (diff)
udf: convert udf_stamp_to_time and udf_time_to_stamp to use timestamps
* kernel_timestamp type was almost unused - only callers of udf_stamp_to_time and udf_time_to_stamp used it, so let these functions handle endianness internally and don't clutter code with conversions * rename udf_stamp_to_time to udf_disk_stamp_to_time and udf_time_to_stamp to udf_time_to_disk_stamp Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/udfdecl.h')
-rw-r--r--fs/udf/udfdecl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/udf/udfdecl.h b/fs/udf/udfdecl.h
index b277524fe608..2cb2f5de4245 100644
--- a/fs/udf/udfdecl.h
+++ b/fs/udf/udfdecl.h
@@ -222,7 +222,8 @@ extern short_ad *udf_get_fileshortad(uint8_t *, int, uint32_t *, int);
222extern uint16_t udf_crc(const uint8_t *, uint32_t, uint16_t); 222extern uint16_t udf_crc(const uint8_t *, uint32_t, uint16_t);
223 223
224/* udftime.c */ 224/* udftime.c */
225extern struct timespec *udf_stamp_to_time(struct timespec *dest, kernel_timestamp src); 225extern struct timespec *udf_disk_stamp_to_time(struct timespec *dest,
226extern kernel_timestamp *udf_time_to_stamp(kernel_timestamp *dest, struct timespec src); 226 timestamp src);
227extern timestamp *udf_time_to_disk_stamp(timestamp *dest, struct timespec src);
227 228
228#endif /* __UDF_DECL_H */ 229#endif /* __UDF_DECL_H */