mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 20:11:58 +00:00
Forgot to add file tilists.h
svn path=/trunk/; revision=10220
This commit is contained in:
parent
42d52c68a5
commit
659a6041bc
1 changed files with 40 additions and 0 deletions
40
reactos/drivers/net/tcpip/include/tilists.h
Normal file
40
reactos/drivers/net/tcpip/include/tilists.h
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
#ifndef _TILISTS_H
|
||||||
|
#define _TILISTS_H
|
||||||
|
|
||||||
|
#define TIPASTE(x,y) x ## y
|
||||||
|
|
||||||
|
#define IF_LIST_ITER(n) \
|
||||||
|
PLIST_ENTRY TIPASTE(n,Entry); \
|
||||||
|
PIP_INTERFACE n;
|
||||||
|
|
||||||
|
#define ADE_LIST_ITER(n) \
|
||||||
|
PLIST_ENTRY TIPASTE(n,Entry); \
|
||||||
|
PADDRESS_ENTRY n;
|
||||||
|
|
||||||
|
#define ForEachInterface(n) \
|
||||||
|
TIPASTE(n,Entry) = InterfaceListHead.Flink; \
|
||||||
|
while (TIPASTE(n,Entry) != &InterfaceListHead) { \
|
||||||
|
TI_DbgPrint \
|
||||||
|
(MAX_TRACE,( # n ": %x\n", \
|
||||||
|
TIPASTE(n,Entry))); \
|
||||||
|
ASSERT(TIPASTE(n,Entry)); \
|
||||||
|
n = CONTAINING_RECORD(TIPASTE(n,Entry), IP_INTERFACE, \
|
||||||
|
ListEntry); \
|
||||||
|
ASSERT(n);
|
||||||
|
|
||||||
|
#define EndFor(n) \
|
||||||
|
TI_DbgPrint(MAX_TRACE,("Next " # n " %x\n", \
|
||||||
|
TIPASTE(n,Entry->Flink))); \
|
||||||
|
TIPASTE(n,Entry) = TIPASTE(n,Entry)->Flink; \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define ForEachADE(ADEList,n) \
|
||||||
|
TIPASTE(n,Entry) = ADEList.Flink; \
|
||||||
|
ASSERT(TIPASTE(n,Entry)); \
|
||||||
|
while (TIPASTE(n,Entry) != &ADEList) { \
|
||||||
|
ASSERT(TIPASTE(n,Entry)); \
|
||||||
|
n = CONTAINING_RECORD(TIPASTE(n,Entry), \
|
||||||
|
ADDRESS_ENTRY, ListEntry); \
|
||||||
|
ASSERT(n);
|
||||||
|
|
||||||
|
#endif/*_TILISTS_H*/
|
Loading…
Add table
Add a link
Reference in a new issue