* \brief Initialise the VFS (called by system.c)
* \return Boolean Success
*/
-extern int VFS_Init();
+extern int VFS_Init(void);
/**
* \brief Open a file
* \brief Change the location of the current file pointer
* \param FD File handle returned by ::VFS_Open
* \param Offset Offset within the file to go to
- * \param Direction A direction from ::eVFS_SeekDirs
+ * \param Whence A direction from ::eVFS_SeekDirs
* \return Boolean success
*/
-extern int VFS_Seek(int FD, Sint64 Offset, int Direction);
+extern int VFS_Seek(int FD, Sint64 Offset, int Whence);
/**
* \brief Returns the current file pointer
* \param FD File handle returned by ::VFS_Open
* \return Boolean Success
*/
extern int VFS_ReadDir(int FD, char *Dest);
+/**
+ * \brief Opens a file via an open directory
+ * \note The file to open must be a direct child of the parent
+ * \param Errno Error number
+ * \param FD Parent Directory
+ * \param Name Child name
+ * \param Mode Open mode
+ * \return File handle (same as returned from VFS_Open)
+ */
+extern int VFS_OpenChild(Uint *Errno, int FD, char *Name, Uint Mode);
#endif