bta_dm_ci.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /******************************************************************************
  2. *
  3. * Copyright 2006-2012 Broadcom Corporation
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at:
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. *
  17. ******************************************************************************/
  18. /******************************************************************************
  19. *
  20. * This is the interface file for device mananger call-in functions.
  21. *
  22. ******************************************************************************/
  23. #ifndef BTA_DM_CI_H
  24. #define BTA_DM_CI_H
  25. #include "bta_api.h"
  26. /*****************************************************************************
  27. * Function Declarations
  28. ****************************************************************************/
  29. /*******************************************************************************
  30. *
  31. * Function bta_dm_ci_io_req
  32. *
  33. * Description This function must be called in response to function
  34. * bta_dm_co_io_req(), if *p_oob_data is set to BTA_OOB_UNKNOWN
  35. * by bta_dm_co_io_req().
  36. *
  37. * Returns void
  38. *
  39. ******************************************************************************/
  40. extern void bta_dm_ci_io_req(const RawAddress& bd_addr, tBTA_IO_CAP io_cap,
  41. tBTA_OOB_DATA oob_data, tBTA_AUTH_REQ auth_req);
  42. /*******************************************************************************
  43. *
  44. * Function bta_dm_ci_rmt_oob
  45. *
  46. * Description This function must be called in response to function
  47. * bta_dm_co_rmt_oob() to provide the OOB data associated
  48. * with the remote device.
  49. *
  50. * Returns void
  51. *
  52. ******************************************************************************/
  53. extern void bta_dm_ci_rmt_oob(bool accept, const RawAddress& bd_addr,
  54. const Octet16& c, const Octet16& r);
  55. /*******************************************************************************
  56. *
  57. * Function bta_dm_sco_ci_data_ready
  58. *
  59. * Description This function sends an event to indicating that the phone
  60. * has SCO data ready..
  61. *
  62. * Returns void
  63. *
  64. ******************************************************************************/
  65. extern void bta_dm_sco_ci_data_ready(uint16_t event, uint16_t sco_handle);
  66. #endif