xref: /haiku/src/add-ons/kernel/file_systems/udf/Utils.h (revision 746cac055adc6ac3308c7bc2d29040fb95689cc9)
1 /*
2  * Copyright 2003, Tyler Dauwalder, tyler@dauwalder.net.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _UDF_UTILS_H
6 #define _UDF_UTILS_H
7 
8 /*! \file Utils.h - Miscellaneous Udf utility functions. */
9 
10 #include "UdfStructures.h"
11 
12 const char		*bool_to_string(bool value);
13 uint16			calculate_crc(uint8 *data, uint16 length);
14 status_t		check_size_error(ssize_t bytesReturned, ssize_t bytesExpected);
15 status_t		get_block_shift(uint32 blockSize, uint32 &blockShift);
16 time_t			make_time(timestamp &timestamp);
17 long_address 	to_long_address(ino_t id, uint32 length = 0);
18 ino_t			to_vnode_id(long_address address);
19 
20 #endif	// _UDF_UTILS_H
21