Debian Codegraph @

src/xrt/drivers/opengloves/communication/bluetooth/opengloves_bt_serial.h

raw
1 // Copyright 2019-2022, Collabora, Ltd.
2 // SPDX-License-Identifier: BSL-1.0
3 /*!
4 * @file
5 * @brief Bluetooth Serial interface for OpenGloves.
6 * @author Daniel Willmott <[email protected]>
7 * @ingroup drv_opengloves
8 */
9
10 #pragma once
11
12 #include "../opengloves_communication.h"
13
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19
20 struct opengloves_bt_device
21 {
22 struct opengloves_communication_device base;
23 int sock;
24 };
25
26 int
27 opengloves_bt_open(const char *btaddr, struct opengloves_communication_device **out_comm_dev);
28
29 #ifdef __cplusplus
30 }
31 #endif