From a7d0033baef6092e8bae03b5eb5c913a4392210b Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Sat, 16 Dec 2017 14:04:50 +0100 Subject: [PATCH] Add a Bluetooth Low Energy (BLE) transport type Libdivecomputer doesn't have built-in support for BLE communication yet, so this is mainly for future use and custom I/O implementations. --- examples/common.c | 1 + include/libdivecomputer/common.h | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/common.c b/examples/common.c index f6ecceb..d23982b 100644 --- a/examples/common.c +++ b/examples/common.c @@ -98,6 +98,7 @@ static const transport_table_t g_transports[] = { {"usbhid", DC_TRANSPORT_USBHID}, {"irda", DC_TRANSPORT_IRDA}, {"bluetooth", DC_TRANSPORT_BLUETOOTH}, + {"ble", DC_TRANSPORT_BLE}, }; const char * diff --git a/include/libdivecomputer/common.h b/include/libdivecomputer/common.h index 0cbaa08..db6d8eb 100644 --- a/include/libdivecomputer/common.h +++ b/include/libdivecomputer/common.h @@ -48,6 +48,7 @@ typedef enum dc_transport_t { DC_TRANSPORT_USBHID = (1 << 2), DC_TRANSPORT_IRDA = (1 << 3), DC_TRANSPORT_BLUETOOTH = (1 << 4), + DC_TRANSPORT_BLE = (1 << 5) } dc_transport_t; typedef enum dc_family_t {