// === PROTOTYPES ===
int IPStack_Root_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX]);
-tVFS_Node *IPStack_Root_FindDir(tVFS_Node *Node, const char *Name);
+tVFS_Node *IPStack_Root_FindDir(tVFS_Node *Node, const char *Name, Uint Flags);
int IPStack_Root_IOCtl(tVFS_Node *Node, int ID, void *Data);
int IPStack_AddFile(tSocketFile *File);
tInterface *IPStack_AddInterface(const char *Device, int Type, const char *Name);
int IPStack_Iface_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX]);
-tVFS_Node *IPStack_Iface_FindDir(tVFS_Node *Node, const char *Name);
+tVFS_Node *IPStack_Iface_FindDir(tVFS_Node *Node, const char *Name, Uint Flags);
int IPStack_Iface_IOCtl(tVFS_Node *Node, int ID, void *Data);
// === GLOBALS ===
/**
* \brief Get the node of an interface
*/
-tVFS_Node *IPStack_Root_FindDir(tVFS_Node *Node, const char *Name)
+tVFS_Node *IPStack_Root_FindDir(tVFS_Node *Node, const char *Name, Uint Flags)
{
- #if 0
- int i, num;
- #endif
tInterface *iface;
ENTER("pNode sName", Node, Name);
sprintf(iface->Name, "%i", (int)iface->Node.ImplInt);
}
+ LOG("Creating interface '%s'", iface->Name);
+
// Append to list
SHORTLOCK( &glIP_Interfaces );
if( gIP_Interfaces ) {
/**
* \brief Gets a named node from an interface directory
*/
-tVFS_Node *IPStack_Iface_FindDir(tVFS_Node *Node, const char *Name)
+tVFS_Node *IPStack_Iface_FindDir(tVFS_Node *Node, const char *Name, Uint Flags)
{
tSocketFile *file = gIP_FileTemplates;
{
if( strcmp(file->Name, Name) == 0 ) break;
}
- if(!file) return NULL;
+ if(!file) {
+ LOG("File '%s' unknown", Name);
+ return NULL;
+ }
// Pass the buck!
+ LOG("File '%s' calling %p", file->Init);
return file->Init(Node->ImplPtr);
}