mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 18:46:18 +00:00
a/os: Add BLE stub functions
This commit is contained in:
parent
d4a77da827
commit
96eabd1347
|
@ -15,4 +15,6 @@ if(XRT_HAVE_DBUS)
|
|||
target_sources(aux_os PRIVATE os_ble_dbus.c)
|
||||
target_link_libraries(aux_os PRIVATE ${DBUS_LIBRARIES})
|
||||
target_include_directories(aux_os SYSTEM PRIVATE ${DBUS_INCLUDE_DIRS})
|
||||
else()
|
||||
target_sources(aux_os PRIVATE os_ble_stubs.c)
|
||||
endif()
|
||||
|
|
23
src/xrt/auxiliary/os/os_ble_stubs.c
Normal file
23
src/xrt/auxiliary/os/os_ble_stubs.c
Normal file
|
@ -0,0 +1,23 @@
|
|||
// Copyright 2019-2022, Collabora, Ltd.
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
/*!
|
||||
* @file
|
||||
* @brief Stub BLE functions.
|
||||
* @author Jakob Bornecrantz <jakob@collabora.com>
|
||||
* @ingroup aux_os
|
||||
*/
|
||||
|
||||
#include "os_ble.h"
|
||||
|
||||
|
||||
int
|
||||
os_ble_notify_open(const char *dev_uuid, const char *char_uuid, struct os_ble_device **out_ble)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
int
|
||||
os_ble_broadcast_write_value(const char *service_uuid, const char *char_uuid, uint8_t value)
|
||||
{
|
||||
return -1;
|
||||
}
|
Loading…
Reference in a new issue