X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Finclude%2Fvfs_int.h;h=75de88bf6464d6d519ca46df4e9073f5f85f7ca1;hb=5f2024e5977e0cca0993a20dad5ab794c94d5711;hp=4961f085bff131a747690bd49d2255193be17df6;hpb=7e5607004c3221d55c7992148b2f0d958cf28533;p=tpg%2Facess2.git diff --git a/Kernel/include/vfs_int.h b/Kernel/include/vfs_int.h index 4961f085..75de88bf 100644 --- a/Kernel/include/vfs_int.h +++ b/Kernel/include/vfs_int.h @@ -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