Testing
[tpg/acess2.git] / Kernel / include / vfs.h
index 12cc8a4..32caf1b 100644 (file)
@@ -63,7 +63,7 @@ typedef struct sVFS_Node {
        
        //! Find an directory entry by name
        struct sVFS_Node        *(*FindDir)(struct sVFS_Node *Node, char *Name);
-       //! Read from a directory
+       //! Read from a directory - MUST return a heap address
        char    *(*ReadDir)(struct sVFS_Node *Node, int Pos);
        //! Create a node in a directory
         int    (*MkNod)(struct sVFS_Node *Node, char *Name, Uint Flags);
@@ -80,10 +80,12 @@ typedef struct sVFS_Driver {
        char    *Name;
        Uint    Flags;
        tVFS_Node       *(*InitDevice)(char *Device, char *Options);
+       void    (*Unmount)(tVFS_Node *Node);
        struct sVFS_Driver      *Next;
 } tVFS_Driver;
 
 // === GLOBALS ===
+#define        VFS_MAXSKIP     ((void*)1024)
 #define        VFS_SKIP        ((void*)1)
 #define        VFS_SKIPN(n)    ((void*)(n))
 extern tVFS_Node       NULLNode;

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