Improving the debug capabilities of the heap code, changed VFS to use const char...
[tpg/acess2.git] / Modules / Filesystems / NTFS / dir.c
1 /*
2  * Acess2 - NTFS Driver
3  * By John Hodge (thePowersGang)
4  * This file is published under the terms of the Acess licence. See the
5  * file COPYING for details.
6  *
7  * dir.c - Directory Handling
8  */
9 #include "common.h"
10
11 // === PROTOTYPES ===
12 char    *NTFS_ReadDir(tVFS_Node *Node, int Pos);
13 tVFS_Node       *NTFS_FindDir(tVFS_Node *Node, const char *Name);
14 Uint64  NTFS_int_IndexLookup(Uint64 Inode, const char *IndexName, const char *Str);
15
16 // === CODE ===
17 /**
18  * \brief Get the name of an indexed directory entry
19  */
20 char *NTFS_ReadDir(tVFS_Node *Node, int Pos)
21 {
22         return NULL;
23 }
24
25 /**
26  * \brief Get an entry from a directory by name
27  */
28 tVFS_Node *NTFS_FindDir(tVFS_Node *Node, const char *Name)
29 {
30         tNTFS_Disk      *disk = Node->ImplPtr;
31         Uint64  inode = NTFS_int_IndexLookup(Node->Inode, "$I30", Name);
32         tVFS_Node       node;
33         
34         if(!inode)      return NULL;
35         
36         node.Inode = inode;
37         
38         return Inode_CacheNode(disk->CacheHandle, &node);
39 }
40
41 /**
42  * \brief Scans an index for the requested value and returns the associated ID
43  */
44 Uint64 NTFS_int_IndexLookup(Uint64 Inode, const char *IndexName, const char *Str)
45 {
46         return 0;
47 }

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