xref: /haiku/src/add-ons/kernel/file_systems/udf/Utils.h (revision d5cd5d63ff0ad395989db6cf4841a64d5b545d1d)
1 //----------------------------------------------------------------------
2 //  This software is part of the OpenBeOS distribution and is covered
3 //  by the OpenBeOS license.
4 //
5 //  Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net
6 //---------------------------------------------------------------------
7 #ifndef _UDF_UTILS_H
8 #define _UDF_UTILS_H
9 
10 /*! \file Utils.h
11 
12 	Miscellaneous Udf utility functions.
13 */
14 
15 extern "C" {
16 	#ifndef _IMPEXP_KERNEL
17 	#	define _IMPEXP_KERNEL
18 	#endif
19 
20 	#include <fsproto.h>
21 }
22 
23 #include "DiskStructures.h"
24 
25 namespace Udf {
26 
27 udf_long_address to_long_address(vnode_id id, uint32 length = 0);
28 
29 vnode_id to_vnode_id(udf_long_address address);
30 
31 time_t make_time(udf_timestamp &timestamp);
32 
33 } // namespace Udf
34 
35 #endif	// _UDF_UTILS_H
36 
37