diff options
Diffstat (limited to 'core/qt-ble.h')
-rw-r--r-- | core/qt-ble.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/qt-ble.h b/core/qt-ble.h index f9600ad19..65e23964a 100644 --- a/core/qt-ble.h +++ b/core/qt-ble.h @@ -23,6 +23,7 @@ public: inline void set_timeout(int value) { timeout = value; } dc_status_t write(const void* data, size_t size, size_t *actual); dc_status_t read(void* data, size_t size, size_t *actual); + inline const char *get_name() { return device->btname; } inline QLowEnergyService *preferredService() { return preferred; } inline int descriptorWritten() { return desc_written; } @@ -63,6 +64,7 @@ dc_status_t qt_ble_set_timeout(void *io, int timeout); dc_status_t qt_ble_read(void *io, void* data, size_t size, size_t *actual); dc_status_t qt_ble_write(void *io, const void* data, size_t size, size_t *actual); dc_status_t qt_ble_close(void *io); +const char *qt_ble_get_name(void *io); } #endif |