vhci.h 677 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  2. /*
  3. *
  4. * BlueZ - Bluetooth protocol stack for Linux
  5. *
  6. * Copyright (C) 2011-2014 Intel Corporation
  7. * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
  8. *
  9. *
  10. */
  11. #include <stdint.h>
  12. enum vhci_type {
  13. VHCI_TYPE_BREDRLE,
  14. VHCI_TYPE_BREDR,
  15. VHCI_TYPE_LE,
  16. VHCI_TYPE_AMP,
  17. };
  18. struct vhci;
  19. typedef void (*vhci_debug_func_t)(const char *str, void *user_data);
  20. typedef void (*vhci_destroy_func_t)(void *user_data);
  21. bool vhci_set_debug(struct vhci *vhci, vhci_debug_func_t callback,
  22. void *user_data, vhci_destroy_func_t destroy);
  23. struct vhci *vhci_open(enum vhci_type type);
  24. void vhci_close(struct vhci *vhci);