bt_mce.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* SPDX-License-Identifier: Apache-2.0 */
  2. /*
  3. * Copyright (C) 2014 The Android Open Source Project
  4. *
  5. */
  6. #ifndef ANDROID_INCLUDE_BT_MCE_H
  7. #define ANDROID_INCLUDE_BT_MCE_H
  8. __BEGIN_DECLS
  9. /** MAS instance description */
  10. typedef struct
  11. {
  12. int id;
  13. int scn;
  14. int msg_types;
  15. char *p_name;
  16. } btmce_mas_instance_t;
  17. /** callback for get_remote_mas_instances */
  18. typedef void (*btmce_remote_mas_instances_callback)(bt_status_t status, bt_bdaddr_t *bd_addr,
  19. int num_instances, btmce_mas_instance_t *instances);
  20. typedef struct {
  21. /** set to sizeof(btmce_callbacks_t) */
  22. size_t size;
  23. btmce_remote_mas_instances_callback remote_mas_instances_cb;
  24. } btmce_callbacks_t;
  25. typedef struct {
  26. /** set to size of this struct */
  27. size_t size;
  28. /** register BT MCE callbacks */
  29. bt_status_t (*init)(btmce_callbacks_t *callbacks);
  30. /** search for MAS instances on remote device */
  31. bt_status_t (*get_remote_mas_instances)(bt_bdaddr_t *bd_addr);
  32. } btmce_interface_t;
  33. __END_DECLS
  34. #endif /* ANDROID_INCLUDE_BT_MCE_H */