mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Compile fix when compiling without BLE enabled
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c5e4086820
commit
b930c39ead
1 changed files with 3 additions and 4 deletions
|
@ -41,8 +41,6 @@ typedef struct qt_serial_t {
|
||||||
long timeout;
|
long timeout;
|
||||||
} qt_serial_t;
|
} qt_serial_t;
|
||||||
|
|
||||||
#ifdef BLE_SUPPORT
|
|
||||||
|
|
||||||
static dc_status_t qt_serial_open(qt_serial_t **io, dc_context_t *context, const char* devaddr)
|
static dc_status_t qt_serial_open(qt_serial_t **io, dc_context_t *context, const char* devaddr)
|
||||||
{
|
{
|
||||||
// Allocate memory.
|
// Allocate memory.
|
||||||
|
@ -398,8 +396,7 @@ static dc_status_t qt_serial_set_timeout(void *io, int timeout)
|
||||||
return DC_STATUS_SUCCESS;
|
return DC_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#ifdef BLE_SUPPORT
|
||||||
|
|
||||||
dc_status_t
|
dc_status_t
|
||||||
ble_packet_open(dc_iostream_t **iostream, dc_context_t *context, const char* devaddr, void *userdata)
|
ble_packet_open(dc_iostream_t **iostream, dc_context_t *context, const char* devaddr, void *userdata)
|
||||||
{
|
{
|
||||||
|
@ -430,6 +427,8 @@ ble_packet_open(dc_iostream_t **iostream, dc_context_t *context, const char* dev
|
||||||
|
|
||||||
return dc_custom_open (iostream, context, DC_TRANSPORT_BLE, &callbacks, io);
|
return dc_custom_open (iostream, context, DC_TRANSPORT_BLE, &callbacks, io);
|
||||||
}
|
}
|
||||||
|
#endif /* BLE_SUPPORT */
|
||||||
|
|
||||||
|
|
||||||
dc_status_t
|
dc_status_t
|
||||||
rfcomm_stream_open(dc_iostream_t **iostream, dc_context_t *context, const char* devaddr)
|
rfcomm_stream_open(dc_iostream_t **iostream, dc_context_t *context, const char* devaddr)
|
||||||
|
|
Loading…
Reference in a new issue