Direct-BT
v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
api
direct_bt
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
29
#include <
jau/packed_attribute.hpp
>
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
50
typedef
jau::EUI48
bdaddr_t
;
51
52
#endif
/* LINUX_KERNEL_TYPES_HPP_ */
eui48.hpp
__s8
int8_t __s8
Definition:
linux_kernel_types.hpp:38
__be32
uint32_t __be32
Definition:
linux_kernel_types.hpp:44
__u32
uint32_t __u32
Definition:
linux_kernel_types.hpp:42
bdaddr_t
jau::EUI48 bdaddr_t
Definition:
linux_kernel_types.hpp:50
__be64
uint64_t __be64
Definition:
linux_kernel_types.hpp:47
__u8
uint8_t __u8
Definition:
linux_kernel_types.hpp:37
__le16
uint16_t __le16
Definition:
linux_kernel_types.hpp:40
__le64
uint64_t __le64
Definition:
linux_kernel_types.hpp:46
__be16
uint16_t __be16
Definition:
linux_kernel_types.hpp:41
__u16
uint16_t __u16
Definition:
linux_kernel_types.hpp:39
__u64
uint64_t __u64
Definition:
linux_kernel_types.hpp:45
__le32
uint32_t __le32
Definition:
linux_kernel_types.hpp:43
packed_attribute.hpp
jau::EUI48
A packed 48 bit EUI-48 identifier, formerly known as MAC-48 or simply network device MAC address (Med...
Definition:
eui48.hpp:324
Generated on Sun May 12 2024 09:25:36 for Direct-BT by
1.9.4