ReactOS 0.4.15-dev-8127-g6338913
glue.h
Go to the documentation of this file.
1#ifndef __GLUE_HEADER
2#define __GLUE_HEADER
3
4#include <stddef.h>
5
6/* header for linux macros and definitions */
7
15 #define container_of(ptr, type, member) (type *)( (char *)(ptr) - offsetof(type,member) )
16
17
18#define time_after(a,b) \
19 ((long)(b) - (long)(a) < 0))
20
21#define time_before(a,b) time_after(b,a)
22
23#define in_interrupt() ((__readeflags() >> 9) & 1)
24
26
27typedef int (*acpi_table_entry_handler) (ACPI_SUBTABLE_HEADER *header, const unsigned long end);
28
29#define down(mutex) ExAcquireFastMutex(mutex)
30#define up(mutex) ExReleaseFastMutex(mutex)
31
32#endif
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
GLuint GLuint end
Definition: gl.h:1545
int(* acpi_table_handler)(ACPI_TABLE_HEADER *table)
Definition: glue.h:25
int(* acpi_table_entry_handler)(ACPI_SUBTABLE_HEADER *header, const unsigned long end)
Definition: glue.h:27