IPStack - Reworking of network device API
[tpg/acess2.git] / KernelLand / Modules / IPStack / include / adapters_api.h
1 /*
2  * Acess2 Networking Stack
3  * - By John Hodge (thePowersGang)
4  *
5  * adapters_api.h
6  * - Network Adapter Management (API Header)
7  */
8 #ifndef _IPSTACK__ADAPTERS_API_H_
9 #define _IPSTACK__ADAPTERS_API_H_
10
11 #include "buffer.h"
12
13 typedef struct sIPStack_AdapterType tIPStack_AdapterType;
14
15 struct sIPStack_AdapterType
16 {
17          int    Type;
18         Uint    Flags;
19         const char      *Name;
20         
21          int    (*SendPacket)(void *Card, tIPStackBuffer *Buffer);
22         tIPStackBuffer  *(*WaitForPacket)(void *Card);
23 };
24
25 extern void     *IPStack_Adapter_Add(const tIPStack_AdapterType *Type, void *Ptr, const void *HWAddr);
26 extern void     IPStack_Adapter_Del(void *Handle);
27
28 #endif
29

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