serial.h 460 B

123456789101112131415161718192021222324
  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 serial_type {
  13. SERIAL_TYPE_BREDRLE,
  14. SERIAL_TYPE_BREDR,
  15. SERIAL_TYPE_LE,
  16. SERIAL_TYPE_AMP,
  17. };
  18. struct serial;
  19. struct serial *serial_open(enum serial_type type);
  20. void serial_close(struct serial *serial);