From b7dafceb20fc694487aa3af84fae49def64ac6db Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 16 Feb 2020 20:25:03 +0100 Subject: Encapsulate EInfoReport handling + ensure memory bounds are checked. EInfoReport now handles reading of the AD/EIR data segments as well as the whole AD reports. This allows short implementation lines of HCIAdapter::discoverDevices(..) and also allows easier review and adding memory bounds checks of read data w/ data structures before reading them. +++ Add full C++ type EUI48 (DataTypes.hpp) handling all operation and replacing the foreign type bdaddr_t. Removing dependency to BlueZ header within our API header. +++ File restucturing: - EInfoReport moved to DataTypes.hpp - HCITypes.cpp -> HCIAdapter.cpp + HCIDevice.cpp + DataTypes.cpp - HCIDiscovery.cpp -> DataTypes.cpp --- examples/HCIScanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/HCIScanner.cpp b/examples/HCIScanner.cpp index 48ab53dd..42b39522 100644 --- a/examples/HCIScanner.cpp +++ b/examples/HCIScanner.cpp @@ -52,7 +52,7 @@ int main(int argc, char *argv[]) exit(1); } fprintf(stderr, "Adapter: device %s, address %s\n", - adapter.getName().c_str(), adapter.getAddress().c_str()); + adapter.getName().c_str(), adapter.getAddressString().c_str()); adapter.setDeviceDiscoveryListener(std::shared_ptr(new DeviceDiscoveryListener())); -- cgit v1.2.3