a/os: Add BLE stub functions

This commit is contained in:
Jakob Bornecrantz 2022-10-22 23:09:16 +01:00 committed by Ryan Pavlik
parent d4a77da827
commit 96eabd1347
2 changed files with 25 additions and 0 deletions

View file

@ -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()

View 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;
}