libwifi 0.0.3
An 802.11 Frame Parsing and Generation library in C
platform.h File Reference
#include <errno.h>
#include <stddef.h>
#include <string.h>

Go to the source code of this file.

Macros

#define le16_to_cpu   le16toh
 
#define le32_to_cpu   le32toh
 
#define EXPORT
 
#define IMPORT
 
#define get_unaligned(p)
 
#define get_unaligned_le16(p)   le16_to_cpu(get_unaligned((uint16_t *) (p)))
 
#define get_unaligned_le32(p)   le32_to_cpu(get_unaligned((uint32_t *) (p)))
 
#define UNALIGNED_ADDRESS(x)   ((void *) (x))
 

Macro Definition Documentation

◆ EXPORT

#define EXPORT

Definition at line 55 of file platform.h.

◆ get_unaligned

#define get_unaligned (   p)
Value:
__extension__({ \
typeof(*(p)) __tmp; \
memmove(&__tmp, (p), sizeof(*(p))); \
__tmp; \
})

Definition at line 70 of file platform.h.

◆ get_unaligned_le16

#define get_unaligned_le16 (   p)    le16_to_cpu(get_unaligned((uint16_t *) (p)))

Definition at line 78 of file platform.h.

◆ get_unaligned_le32

#define get_unaligned_le32 (   p)    le32_to_cpu(get_unaligned((uint32_t *) (p)))

Definition at line 79 of file platform.h.

◆ IMPORT

#define IMPORT

Definition at line 56 of file platform.h.

◆ le16_to_cpu

#define le16_to_cpu   le16toh

Definition at line 39 of file platform.h.

◆ le32_to_cpu

#define le32_to_cpu   le32toh

Definition at line 43 of file platform.h.

◆ UNALIGNED_ADDRESS

#define UNALIGNED_ADDRESS (   x)    ((void *) (x))

Definition at line 81 of file platform.h.