server.h 560 B

1234567891011121314151617181920212223242526
  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 server_type {
  13. SERVER_TYPE_BREDRLE,
  14. SERVER_TYPE_BREDR,
  15. SERVER_TYPE_LE,
  16. SERVER_TYPE_AMP,
  17. SERVER_TYPE_MONITOR,
  18. };
  19. struct server;
  20. struct server *server_open_unix(enum server_type type, const char *path);
  21. struct server *server_open_tcp(enum server_type type);
  22. void server_close(struct server *server);