Blob: server.h

Blob id: 7d6b7be747ada9911a8c961e3b9f8f6400b53c1d

Size: 575 B

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
 *
 *  BlueZ - Bluetooth protocol stack for Linux
 *
 *  Copyright (C) 2011-2014  Intel Corporation
 *  Copyright (C) 2004-2010  Marcel Holtmann <marcel@holtmann.org>
 *
 *
 */

#include <stdint.h>

enum server_type {
	SERVER_TYPE_BREDRLE,
	SERVER_TYPE_BREDR,
	SERVER_TYPE_LE,
	SERVER_TYPE_AMP,
	SERVER_TYPE_MONITOR,
};

struct server;

struct server *server_open_unix(enum server_type type, const char *path);
struct server *server_open_tcp(enum server_type type, uint16_t port);
void server_close(struct server *server);