Working on a NTFS implementation (it's only going to be RO)
[tpg/acess2.git] / Modules / Filesystems / NTFS / main.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  * main.c - Driver core
8  */
9 #define DEBUG   1
10 #define VERBOSE 0
11 #include "common.h"
12 #include <modules.h>
13
14 // === PROTOTYPES ===
15  int    NTFS_Install(char **Arguments);
16 tVFS_Node       *NTFS_InitDevice(char *Devices, char **Options);
17 void    NTFS_Unmount(tVFS_Node *Node);
18
19 // === GLOBALS ===
20 MODULE_DEFINE(0, 0x0A /*v0.1*/, FS_NTFS, NTFS_Install, NULL);
21 tVFS_Driver     gNTFS_FSInfo = {"ntfs", 0, NTFS_InitDevice, NTFS_Unmount, NULL};
22
23 tNTFS_Disk      gNTFS_Disks;
24
25 // === CODE ===
26 /**
27  * \brief Installs the NTFS driver
28  */
29 int NTFS_Install(char **Arguments)
30 {
31         VFS_AddDriver( &gNTFS_FSInfo );
32         return 1;
33 }
34
35 /**
36  * \brief Mount a NTFS volume
37  */
38 tVFS_Node *NTFS_InitDevice(char *Device, char **Options)
39 {
40         char    *path, *host;
41         tNTFS_Disk      *disk;
42         
43         disk = malloc( sizeof(tNTFS_Disk) );
44         
45         return &disk->RootNode;
46 }
47
48 /**
49  * \brief Unmount an NTFS Disk
50  */
51 void NTFS_Unmount(tVFS_Node *Node)
52 {
53         
54 }

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