Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
linux_kernel_types.hpp
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Gothel Software e.K.
3 * Copyright (c) 2020 ZAFENA AB
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining
6 * a copy of this software and associated documentation files (the
7 * "Software"), to deal in the Software without restriction, including
8 * without limitation the rights to use, copy, modify, merge, publish,
9 * distribute, sublicense, and/or sell copies of the Software, and to
10 * permit persons to whom the Software is furnished to do so, subject to
11 * the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be
14 * included in all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 *
24 */
25
26#ifndef LINUX_KERNEL_TYPES_HPP_
27#define LINUX_KERNEL_TYPES_HPP_
28
30#include <jau/eui48.hpp>
31
32#if defined(__linux__)
33 extern "C" {
34 #include <linux/types.h>
35 }
36#else /* !defined(__linux__) */
37 typedef uint8_t __u8;
38 typedef int8_t __s8;
39 typedef uint16_t __u16;
40 typedef uint16_t __le16;
41 typedef uint16_t __be16;
42 typedef uint32_t __u32;
43 typedef uint32_t __le32;
44 typedef uint32_t __be32;
45 typedef uint64_t __u64;
46 typedef uint64_t __le64;
47 typedef uint64_t __be64;
48#endif /* !defined(__linux__) */
49
51
52#endif /* LINUX_KERNEL_TYPES_HPP_ */
int8_t __s8
uint32_t __be32
uint32_t __u32
jau::EUI48 bdaddr_t
uint64_t __be64
uint8_t __u8
uint16_t __le16
uint64_t __le64
uint16_t __be16
uint16_t __u16
uint64_t __u64
uint32_t __le32
A packed 48 bit EUI-48 identifier, formerly known as MAC-48 or simply network device MAC address (Med...
Definition: eui48.hpp:324