ipc-common.h 447 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  2. /*
  3. *
  4. * BlueZ - Bluetooth protocol stack for Linux
  5. *
  6. * Copyright (C) 2014 Intel Corporation. All rights reserved.
  7. *
  8. *
  9. */
  10. #define IPC_MTU 1024
  11. #define IPC_STATUS_SUCCESS 0x00
  12. struct ipc_hdr {
  13. uint8_t service_id;
  14. uint8_t opcode;
  15. uint16_t len;
  16. uint8_t payload[0];
  17. } __attribute__((packed));
  18. #define IPC_OP_STATUS 0x00
  19. struct ipc_status {
  20. uint8_t code;
  21. } __attribute__((packed));