]> git.saurik.com Git - apple/bootx.git/blob - bootx.tproj/include.subproj/fs.h
BootX-36.tar.gz
[apple/bootx.git] / bootx.tproj / include.subproj / fs.h
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22 /*
23 * fs.h - Externs for the File System Modules
24 *
25 * Copyright (c) 1999-2000 Apple Computer, Inc.
26 *
27 * DRI: Josh de Cesare
28 */
29
30 #ifndef _BOOTX_FS_H_
31 #define _BOOTX_FS_H_
32
33 // Externs for fs.c
34 extern long LoadFile(char *fileSpec);
35 extern long CopyFile(char *fileSpec, char **addr, long *length);
36 extern long GetFileInfo(char *dirSpec, char *name, long *flags, long *time);
37 extern long GetDirEntry(char *dirSpec, long *dirIndex, char **name,
38 long *flags, long *time);
39 extern long DumpDir(char *dirSpec);
40
41 // Externs for cache.c
42 extern unsigned long gCacheHits;
43 extern unsigned long gCacheMisses;
44 extern unsigned long gCacheEvicts;
45
46 extern void CacheInit(CICell ih, long chunkSize);
47 extern long CacheRead(CICell ih, char *buffer, long long offset,
48 long length, long cache);
49
50 // Externs for net.c
51 extern CICell NetInitPartition(char *devSpec);
52 extern long NetLoadFile(CICell ih, char *filePath);
53 extern long NetGetDirEntry(CICell ih, char *dirPath,
54 long *dirIndex, char **name,
55 long *flags, long *time);
56
57 // Externs for hfs.c
58 extern long HFSInitPartition(CICell ih);
59 extern long HFSLoadFile(CICell ih, char *filePath);
60 extern long HFSGetDirEntry(CICell ih, char *dirPath,
61 long *dirIndex, char **name,
62 long *flags, long *time);
63
64 // Externs for ufs.c
65 extern long UFSInitPartition(CICell ih);
66 extern long UFSLoadFile(CICell ih, char *filePath);
67 extern long UFSGetDirEntry(CICell ih, char *dirPath,
68 long *dirIndex, char **name,
69 long *flags, long *time);
70
71 // Externs for ext2.c
72 extern long Ext2InitPartition(CICell ih);
73 extern long Ext2LoadFile(CICell ih, char *filePath);
74 extern long Ext2GetDirEntry(CICell ih, char *dirPath,
75 long *dirIndex, char **name,
76 long *flags, long *time);
77
78 #endif /* ! _BOOTX_FS_H_ */