Kernel - Implimented VFS_Reopen
[tpg/acess2.git] / KernelLand / Modules / Filesystems / NTFS / dir.c
index 37661e8..538445b 100644 (file)
 #include "index.h"
 
 // === PROTOTYPES ===
-char   *NTFS_ReadDir(tVFS_Node *Node, int Pos);
-tVFS_Node      *NTFS_FindDir(tVFS_Node *Node, const char *Name);
+ int   NTFS_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX]);
+tVFS_Node      *NTFS_FindDir(tVFS_Node *Node, const char *Name, Uint Flags);
 Uint64 NTFS_int_IndexLookup(Uint64 Inode, const char *IndexName, const char *Str);
 
 // === CODE ===
 /**
  * \brief Get the name of an indexed directory entry
  */
-char *NTFS_ReadDir(tVFS_Node *Node, int Pos)
+int NTFS_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX])
 {
-       return NULL;
+       return -ENOTIMPL;
 }
 
 /**
  * \brief Get an entry from a directory by name
  */
-tVFS_Node *NTFS_FindDir(tVFS_Node *Node, const char *Name)
+tVFS_Node *NTFS_FindDir(tVFS_Node *Node, const char *Name, Uint Flags)
 {
        tNTFS_Disk      *disk = Node->ImplPtr;
        Uint64  inode = NTFS_int_IndexLookup(Node->Inode, "$I30", Name);

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