agent.h 747 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  2. /*
  3. *
  4. * BlueZ - Bluetooth protocol stack for Linux
  5. *
  6. * Copyright (C) 2017 Intel Corporation. All rights reserved.
  7. *
  8. *
  9. */
  10. #define MAX_HEXADECIMAL_OOB_LEN 128
  11. #define DECIMAL_OOB_LEN 4
  12. #define MAX_ASCII_OOB_LEN 16
  13. typedef enum {
  14. NONE,
  15. HEXADECIMAL,
  16. DECIMAL,
  17. ASCII,
  18. OUTPUT,
  19. } oob_type_t;
  20. typedef void (*agent_input_cb)(oob_type_t type, void *input, uint16_t len,
  21. void *user_data);
  22. bool agent_input_request(oob_type_t type, uint16_t max_len, const char *desc,
  23. agent_input_cb cb, void *user_data);
  24. bool agent_output_request(const char* str);
  25. void agent_output_request_cancel(void);
  26. bool agent_completion(void);
  27. bool agent_input(const char *input);
  28. void agent_release(void);