git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VFS - Rework to remove function pointers from tVFS_Node
[tpg/acess2.git]
/
Kernel
/
include
/
vfs_int.h
diff --git
a/Kernel/include/vfs_int.h
b/Kernel/include/vfs_int.h
index
0d6b3b5
..
75de88b
100644
(file)
--- a/
Kernel/include/vfs_int.h
+++ b/
Kernel/include/vfs_int.h
@@
-10,7
+10,8
@@
typedef struct sVFS_Mount {
struct sVFS_Mount *Next;
char *MountPoint;
typedef struct sVFS_Mount {
struct sVFS_Mount *Next;
char *MountPoint;
- int MountPointLen;
+ size_t MountPointLen;
+ Uint32 Identifier;
char *Device;
char *Options;
tVFS_Driver *Filesystem;
char *Device;
char *Options;
tVFS_Driver *Filesystem;
@@
-44,11
+45,22
@@
typedef struct sVFS_MMapPage {
extern tVFS_Mount *gVFS_Mounts;
// === PROTOTYPES ===
extern tVFS_Mount *gVFS_Mounts;
// === PROTOTYPES ===
-// ---
OPEN.C
---
+// ---
open.c
---
extern char *VFS_GetAbsPath(const char *Path);
extern char *VFS_GetAbsPath(const char *Path);
-extern tVFS_Node *VFS_ParsePath(const char *Path, char **TruePath);
+extern tVFS_Node *VFS_ParsePath(const char *Path, char **TruePath
, tVFS_Mount **MountPoint
);
extern tVFS_Handle *VFS_GetHandle(int FD);
extern tVFS_Handle *VFS_GetHandle(int FD);
-// ---
ACLS.C
---
+// ---
acls.c
---
extern int VFS_CheckACL(tVFS_Node *Node, Uint Permissions);
extern int VFS_CheckACL(tVFS_Node *Node, Uint Permissions);
+// --- mount.c ---
+extern tVFS_Mount *VFS_GetMountByIdent(Uint32 MountID);
+
+
+// --- VFS Helpers ---
+static inline void _CloseNode(tVFS_Node *Node)
+{
+ if(Node && Node->Type && Node->Type->Close)
+ Node->Type->Close( Node );
+}
+
#endif
#endif
UCC
git Repository :: git.ucc.asn.au