btif_pnp.c 799 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (c) 2016 Actions Semi Co., Inc.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. /**
  7. * @file
  8. * @brief bt srv pnp info api interface
  9. */
  10. #define SYS_LOG_DOMAIN "btif_pnp_info"
  11. #include "btsrv_os_common.h"
  12. #include "btsrv_inner.h"
  13. int btif_pnp_info_register_processer(void)
  14. {
  15. int ret = 0;
  16. SYS_LOG_INF("btif_pnp_info_register_processer\n");
  17. ret |= btsrv_register_msg_processer(MSG_BTSRV_PNP, &btsrv_pnp_info_process);
  18. return ret;
  19. }
  20. int btif_pnp_info_search_start(btsrv_pnp_info_callback cb)
  21. {
  22. SYS_LOG_INF("btif_pnp_info_search_start\n");
  23. return btsrv_function_call(MSG_BTSRV_PNP, MSG_BTSRV_PNP_INFO_START, cb);
  24. }
  25. int btif_pnp_info_search_stop(void)
  26. {
  27. SYS_LOG_INF("btif_pnp_info_search_stop\n");
  28. return btsrv_function_call(MSG_BTSRV_PNP, MSG_BTSRV_PNP_INFO_STOP, NULL);
  29. }