xref: /haiku/headers/os/bluetooth/bluetooth.h (revision b30304acc8c37e678a1bf66976d15bdab103f931)
1 /*
2  * Copyright 2007 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
3  *
4  * All rights reserved. Distributed under the terms of the MIT License.
5  *
6  */
7 
8 #ifndef _BLUETOOTH_H
9 #define _BLUETOOTH_H
10 
11 #include <ByteOrder.h>
12 
13 /* Bluetooth version */
14 #define BLUETOOTH_1_1B 0
15 #define BLUETOOTH_1_1  1
16 #define BLUETOOTH_1_2  2
17 #define BLUETOOTH_2_0  3
18 
19 #define BLUETOOTH_VERSION BLUETOOTH_2_0
20 
21 
22 /* Bluetooth common types */
23 
24 /* BD Address */
25 typedef struct {
26 	uint8 b[6];
27 } __attribute__((packed)) bdaddr_t;
28 
29 /* 128 integer type needed for SDP */
30 struct int128 {
31 	int8	b[16];
32 };
33 typedef struct int128	int128;
34 typedef struct int128	uint128;
35 
36 
37 #endif
38