天嵌二次封装库使用手册  V1.0
cmtp.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  *
4  * BlueZ - Bluetooth protocol stack for Linux
5  *
6  * Copyright (C) 2002-2010 Marcel Holtmann <marcel@holtmann.org>
7  *
8  *
9  */
10 
11 #ifndef __CMTP_H
12 #define __CMTP_H
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 /* CMTP defaults */
19 #define CMTP_MINIMUM_MTU 152
20 #define CMTP_DEFAULT_MTU 672
21 
22 /* CMTP ioctl defines */
23 #define CMTPCONNADD _IOW('C', 200, int)
24 #define CMTPCONNDEL _IOW('C', 201, int)
25 #define CMTPGETCONNLIST _IOR('C', 210, int)
26 #define CMTPGETCONNINFO _IOR('C', 211, int)
27 
28 #define CMTP_LOOPBACK 0
29 
31  int sock; /* Connected socket */
32  uint32_t flags;
33 };
34 
36  bdaddr_t bdaddr;
37  uint32_t flags;
38 };
39 
40 struct cmtp_conninfo {
41  bdaddr_t bdaddr;
42  uint32_t flags;
43  uint16_t state;
44  int num;
45 };
46 
48  uint32_t cnum;
49  struct cmtp_conninfo *ci;
50 };
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 #endif /* __CMTP_H */
Definition: cmtp.h:30
Definition: cmtp.h:40
Definition: cmtp.h:47
Definition: cmtp.h:35