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