mirror of
https://github.com/reactos/reactos.git
synced 2025-07-06 22:01:23 +00:00

- take code from STABLE-2_2_0_RELEASE commit on https://git.savannah.gnu.org/git/lwip.git - remove lwip/contrib directory - do required changes due to upgrade in * CMakeLists.txt * include/lwip/arch/cc.h * include/lwip/arch/sys_arch.h * include/lwip/lwipopts.h * include/tcpip.h * ip/CMakeLists.txt * ip/lwip_glue/lwip_glue.h * ip/lwip_glue/tcp.c * ip/transport/tcp/if.c * tcpip/icmp.c CORE-13098
42 lines
814 B
C
42 lines
814 B
C
/* ReactOS-Specific lwIP binding header - by Cameron Gutman */
|
|
|
|
/* Implmentation specific structs */
|
|
typedef struct _sys_sem_t
|
|
{
|
|
KEVENT Event;
|
|
int Valid;
|
|
} sys_sem_t;
|
|
|
|
typedef struct _sys_mbox_t
|
|
{
|
|
KSPIN_LOCK Lock;
|
|
LIST_ENTRY ListHead;
|
|
KEVENT Event;
|
|
int Valid;
|
|
} sys_mbox_t;
|
|
|
|
typedef KIRQL sys_prot_t;
|
|
|
|
typedef u32_t sys_thread_t;
|
|
|
|
typedef struct _LWIP_MESSAGE_CONTAINER
|
|
{
|
|
PVOID Message;
|
|
LIST_ENTRY ListEntry;
|
|
} LWIP_MESSAGE_CONTAINER, *PLWIP_MESSAGE_CONTAINER;
|
|
|
|
#define sys_jiffies() sys_now()
|
|
|
|
/* There is no such thing as "from ISR" for us */
|
|
#define sys_mbox_trypost_fromisr sys_mbox_trypost
|
|
|
|
/* NULL definitions */
|
|
#define SYS_MBOX_NULL NULL
|
|
#define SYS_SEM_NULL NULL
|
|
#define SYS_ARCH_NULL NULL
|
|
|
|
void
|
|
sys_arch_protect(sys_prot_t *lev);
|
|
|
|
void
|
|
sys_arch_unprotect(sys_prot_t lev);
|