Kernel - Slight reworks to timer code
[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 #include "index.h"
11
12 // === PROTOTYPES ===
13 char    *NTFS_ReadDir(tVFS_Node *Node, int Pos);
14 tVFS_Node       *NTFS_FindDir(tVFS_Node *Node, const char *Name);
15 Uint64  NTFS_int_IndexLookup(Uint64 Inode, const char *IndexName, const char *Str);
16
17 // === CODE ===
18 /**
19  * \brief Get the name of an indexed directory entry
20  */
21 char *NTFS_ReadDir(tVFS_Node *Node, int Pos)
22 {
23         return NULL;
24 }
25
26 /**
27  * \brief Get an entry from a directory by name
28  */
29 tVFS_Node *NTFS_FindDir(tVFS_Node *Node, const char *Name)
30 {
31         tNTFS_Disk      *disk = Node->ImplPtr;
32         Uint64  inode = NTFS_int_IndexLookup(Node->Inode, "$I30", Name);
33         tVFS_Node       node;
34         
35         if(!inode)      return NULL;
36         
37         node.Inode = inode;
38         
39         return Inode_CacheNode(disk->CacheHandle, &node);
40 }
41
42 /**
43  * \brief Scans an index for the requested value and returns the associated ID
44  */
45 Uint64 NTFS_int_IndexLookup(Uint64 Inode, const char *IndexName, const char *Str)
46 {
47         return 0;
48 }

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