xref: /netbsd-src/external/bsd/pdisk/dist/convert.h (revision 9428323d408c34869b770589b50e854e1d2fccf5)
1 //
2 // convert.h - Little-endian conversion
3 //
4 // Written by Eryk Vershen
5 //
6 // The approach taken to conversion is fairly simply.
7 // Keep the in-memory copy in the machine's normal form and
8 // Convert as necessary when reading and writing.
9 //
10 
11 /*
12  * Copyright 1996,1998 by Apple Computer, Inc.
13  *              All Rights Reserved
14  *
15  * Permission to use, copy, modify, and distribute this software and
16  * its documentation for any purpose and without fee is hereby granted,
17  * provided that the above copyright notice appears in all copies and
18  * that both the copyright notice and this permission notice appear in
19  * supporting documentation.
20  *
21  * APPLE COMPUTER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
22  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23  * FOR A PARTICULAR PURPOSE.
24  *
25  * IN NO EVENT SHALL APPLE COMPUTER BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
26  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
27  * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
28  * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
29  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
30  */
31 
32 #ifndef __convert__
33 #define __convert__
34 
35 #include "dpme.h"
36 
37 
38 //
39 // Defines
40 //
41 
42 
43 //
44 // Types
45 //
46 
47 
48 //
49 // Global Constants
50 //
51 
52 
53 //
54 // Global Variables
55 //
56 
57 
58 //
59 // Forward declarations
60 //
61 int convert_block0(Block0 *data, int to_cpu_form);
62 int convert_bzb(BZB *data, int to_cpu_form);
63 int convert_dpme(DPME *data, int to_cpu_form);
64 
65 #endif /* __convert__ */
66