Kernel - Added 'Flags' param to VFS Read/Write/FindDir
[tpg/acess2.git] / KernelLand / Modules / IPStack / adapters.c
index 2a02fd2..7bf10d5 100644 (file)
@@ -21,7 +21,7 @@ void  *IPStack_Adapter_Add(const tIPStack_AdapterType *Type, void *Ptr, const voi
 void   IPStack_Adapter_Del(void *Handle);
 // --- VFS API ---
  int   Adapter_ReadDir(tVFS_Node *Node, int Pos, char Name[FILENAME_MAX]);
-tVFS_Node      *Adapter_FindDir(tVFS_Node *Node, const char *Name);
+tVFS_Node      *Adapter_FindDir(tVFS_Node *Node, const char *Name, Uint Flags);
  int   Adapter_DirIOCtl(tVFS_Node *Node, int Num, void *Data);
  int   Adapter_IOCtl(tVFS_Node *Node, int Num, void *Data);
 // --- "Internal" (IPStack) API ---
@@ -85,8 +85,8 @@ void *IPStack_Adapter_Add(const tIPStack_AdapterType *Type, void *Ptr, const voi
        Mutex_Release( &glIP_Adapters );
        
        // Watch the adapter for incoming packets
-       tTID tid = Proc_SpawnWorker(Adapter_int_WatchThread, ret);
-       if(tid < 0) {
+       void *worker = Proc_SpawnWorker(Adapter_int_WatchThread, ret);
+       if(!worker) {
                Log_Warning("IPStack", "Unable to create watcher thread for %p", ret);
        }
        
@@ -157,7 +157,7 @@ int Adapter_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX])
        return -EINVAL;
 }
 
-tVFS_Node *Adapter_FindDir(tVFS_Node *Node, const char *Name)
+tVFS_Node *Adapter_FindDir(tVFS_Node *Node, const char *Name, Uint Flags)
 {
        tAdapter *a = Adapter_GetByName(Name);
        if(!a)

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