]>
git.saurik.com Git - apple/bootx.git/blob - bootx.tproj/include.subproj/fs.h
4c951512cca1a4f23eda43c9a0a8fde6c4afdecd
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
20 * @APPLE_LICENSE_HEADER_END@
23 * fs.h - Externs for the File System Modules
25 * Copyright (c) 1999-2004 Apple Computer, Inc.
34 extern long LoadFile(char *fileSpec
);
35 extern long LoadThinFatFile(char *fileSpec
, void **binary
);
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 extern long GetFSUUID(char *devSpec
, char *uuidStr
);
41 extern long CreateUUIDString(uint8_t uubytes
[], int nbytes
, char *uuidStr
);
43 // Externs for cache.c
44 extern unsigned long gCacheHits
;
45 extern unsigned long gCacheMisses
;
46 extern unsigned long gCacheEvicts
;
48 extern void CacheInit(CICell ih
, long chunkSize
);
49 extern long CacheRead(CICell ih
, char *buffer
, long long offset
,
50 long length
, long cache
);
53 extern CICell
NetInitPartition(char *devSpec
);
54 extern long NetLoadFile(CICell ih
, char *filePath
);
55 extern long NetGetDirEntry(CICell ih
, char *dirPath
,
56 long *dirIndex
, char **name
,
57 long *flags
, long *time
);
60 extern long HFSInitPartition(CICell ih
);
61 extern long HFSLoadFile(CICell ih
, char *filePath
);
62 extern long HFSReadFile(CICell ih
, char *filePath
,
63 void *base
, unsigned long offset
,
64 unsigned long length
);
65 extern long HFSGetDirEntry(CICell ih
, char *dirPath
,
66 long *dirIndex
, char **name
,
67 long *flags
, long *time
);
68 extern long HFSGetUUID(CICell ih
, char *uuidStr
);
71 extern long UFSInitPartition(CICell ih
);
72 extern long UFSLoadFile(CICell ih
, char *filePath
);
73 extern long UFSReadFile(CICell ih
, char *filePath
,
74 void *base
, unsigned long offset
,
75 unsigned long length
);
76 extern long UFSGetDirEntry(CICell ih
, char *dirPath
,
77 long *dirIndex
, char **name
,
78 long *flags
, long *time
);
79 extern long UFSGetUUID(CICell ih
, char *uuidStr
);
82 extern long Ext2InitPartition(CICell ih
);
83 extern long Ext2LoadFile(CICell ih
, char *filePath
);
84 extern long Ext2GetDirEntry(CICell ih
, char *dirPath
,
85 long *dirIndex
, char **name
,
86 long *flags
, long *time
);
87 extern long Ext2GetUUID(CICell ih
, char *uuidStr
);
89 #endif /* ! _BOOTX_FS_H_ */