NetTest - Compiles, doesn't yet do much
[tpg/acess2.git] / Tools / NetTest / vfs_shim.c
1 /*
2  * Acess2 Networking Test Suite (NetTest)
3  * - By John Hodge (thePowersGang)
4  *
5  * vfs_shim.c
6  * - VFS Layer Emulation
7  */
8 #include <vfs.h>
9 #include <vfs_int.h>
10 #include <events.h>
11
12 // === CODE ===
13 int VFS_SelectNode(tVFS_Node *Node, int Type, tTime *Timeout, const char *Name)
14 {
15         
16         return 0;
17 }
18
19 int VFS_MarkAvaliable(tVFS_Node *Node, BOOL bAvail)
20 {
21         Node->DataAvaliable = bAvail;
22         if( Node->DataAvaliable && Node->ReadThreads )
23                 Threads_PostEvent( (void*)Node->ReadThreads, THREAD_EVENT_VFS );
24         return 0;
25 }
26
27 int VFS_MarkError(tVFS_Node *Node, BOOL bError)
28 {
29         Node->ErrorOccurred = bError;
30         if( Node->ErrorOccurred && Node->ErrorThreads )
31                 Threads_PostEvent( (void*)Node->ErrorThreads, THREAD_EVENT_VFS );
32         return 0;
33 }
34
35 int VFS_Open(const char *Path, Uint Flags)
36 {
37         return -1;
38 }
39
40 void VFS_Close(int FD)
41 {
42 }
43
44 tVFS_Handle *VFS_GetHandle(int FD)
45 {
46         return NULL;
47 }
48

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