cmtp.h 920 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. #ifndef __CMTP_H
  11. #define __CMTP_H
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. /* CMTP defaults */
  16. #define CMTP_MINIMUM_MTU 152
  17. #define CMTP_DEFAULT_MTU 672
  18. /* CMTP ioctl defines */
  19. #define CMTPCONNADD _IOW('C', 200, int)
  20. #define CMTPCONNDEL _IOW('C', 201, int)
  21. #define CMTPGETCONNLIST _IOR('C', 210, int)
  22. #define CMTPGETCONNINFO _IOR('C', 211, int)
  23. #define CMTP_LOOPBACK 0
  24. struct cmtp_connadd_req {
  25. int sock; /* Connected socket */
  26. uint32_t flags;
  27. };
  28. struct cmtp_conndel_req {
  29. bdaddr_t bdaddr;
  30. uint32_t flags;
  31. };
  32. struct cmtp_conninfo {
  33. bdaddr_t bdaddr;
  34. uint32_t flags;
  35. uint16_t state;
  36. int num;
  37. };
  38. struct cmtp_connlist_req {
  39. uint32_t cnum;
  40. struct cmtp_conninfo *ci;
  41. };
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif /* __CMTP_H */