VFS - Rework to remove function pointers from tVFS_Node
[tpg/acess2.git] / Kernel / include / vfs_int.h
index 4961f08..75de88b 100644 (file)
@@ -54,4 +54,13 @@ 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

UCC git Repository :: git.ucc.asn.au