diff options
author | Petre Eftime <[email protected]> | 2016-05-04 18:40:55 +0300 |
---|---|---|
committer | Petre Eftime <[email protected]> | 2016-05-04 18:40:55 +0300 |
commit | f5f8c4a87f3963a65c7041fa139800f45e0dc689 (patch) | |
tree | 06646508c555ed6fe679b7800c753008739fcfb2 /src | |
parent | f3298303bbf32b7f49b8aaa85aec3076fd13a2d6 (diff) |
Add functions to retrieve version information. Check library versions in getBluetoothManager.
Signed-off-by: Petre Eftime <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/BluetoothManager.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/BluetoothManager.cpp b/src/BluetoothManager.cpp index 4b318e3e..8de8003c 100644 --- a/src/BluetoothManager.cpp +++ b/src/BluetoothManager.cpp @@ -30,6 +30,7 @@ #include "BluetoothGattCharacteristic.hpp" #include "BluetoothGattDescriptor.hpp" #include "BluetoothEvent.hpp" +#include "version.h" #include <pthread.h> #include <cassert> @@ -121,6 +122,14 @@ BluetoothType BluetoothManager::get_bluetooth_type() const return BluetoothType::NONE; } +std::string BluetoothManager::get_api_version() { + return std::string(gVERSION_API); +} + +std::string BluetoothManager::get_library_version() { + return std::string(gVERSION_SHORT); +} + std::unique_ptr<BluetoothObject> BluetoothManager::get_object( BluetoothType type, std::string *name, std::string *identifier, BluetoothObject *parent) |