The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

a/os: Add BLE stub functions

authored by

Jakob Bornecrantz and committed by
Ryan Pavlik
96eabd13 d4a77da8

+25
+2
src/xrt/auxiliary/os/CMakeLists.txt
··· 15 15 target_sources(aux_os PRIVATE os_ble_dbus.c) 16 16 target_link_libraries(aux_os PRIVATE ${DBUS_LIBRARIES}) 17 17 target_include_directories(aux_os SYSTEM PRIVATE ${DBUS_INCLUDE_DIRS}) 18 + else() 19 + target_sources(aux_os PRIVATE os_ble_stubs.c) 18 20 endif()
+23
src/xrt/auxiliary/os/os_ble_stubs.c
··· 1 + // Copyright 2019-2022, Collabora, Ltd. 2 + // SPDX-License-Identifier: BSL-1.0 3 + /*! 4 + * @file 5 + * @brief Stub BLE functions. 6 + * @author Jakob Bornecrantz <jakob@collabora.com> 7 + * @ingroup aux_os 8 + */ 9 + 10 + #include "os_ble.h" 11 + 12 + 13 + int 14 + os_ble_notify_open(const char *dev_uuid, const char *char_uuid, struct os_ble_device **out_ble) 15 + { 16 + return -1; 17 + } 18 + 19 + int 20 + os_ble_broadcast_write_value(const char *service_uuid, const char *char_uuid, uint8_t value) 21 + { 22 + return -1; 23 + }