Kernel - Added 'Flags' param to VFS Read/Write/FindDir
[tpg/acess2.git] / KernelLand / Modules / USB / Core / main.c
index 6ef7a2b..4b4efa3 100644 (file)
 // === IMPORTS ===
 extern void    USB_PollThread(void *unused);
 extern void    USB_AsyncThread(void *Unused);
+extern void    USB_PortCtl_Init(void);
 
 // === PROTOTYPES ===
  int   USB_Install(char **Arguments);
 void   USB_Cleanup(void);
-char   *USB_ReadDir(tVFS_Node *Node, int Pos);
-tVFS_Node      *USB_FindDir(tVFS_Node *Node, const char *Name);
+ int   USB_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX]);
+tVFS_Node      *USB_FindDir(tVFS_Node *Node, const char *Name, Uint Flags);
  int   USB_IOCtl(tVFS_Node *Node, int Id, void *Data);
 
 // === GLOBALS ===
@@ -43,8 +44,7 @@ tDevFS_Driver gUSB_DrvInfo = {
  */
 int USB_Install(char **Arguments)
 {
-       Log_Warning("USB", "Not Complete - Devel Only");
-       
+       USB_PortCtl_Init();
        Proc_SpawnWorker(USB_PollThread, NULL);
        Proc_SpawnWorker(USB_AsyncThread, NULL);
        
@@ -62,16 +62,16 @@ void USB_Cleanup()
  * \fn char *USB_ReadDir(tVFS_Node *Node, int Pos)
  * \brief Read from the USB root
  */
-char *USB_ReadDir(tVFS_Node *Node, int Pos)
+int USB_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX])
 {
-       return NULL;
+       return -ENOTIMPL;
 }
 
 /**
  * \fn tVFS_Node *USB_FindDir(tVFS_Node *Node, const char *Name)
  * \brief Locate an entry in the USB root
  */
-tVFS_Node *USB_FindDir(tVFS_Node *Node, const char *Name)
+tVFS_Node *USB_FindDir(tVFS_Node *Node, const char *Name, Uint Flags)
 {
        return NULL;
 }

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