aports/testing/simpleble/bluez.patch
psykose 72dc4d16c8 testing/simpleble: new aport
https://github.com/OpenBluetoothToolbox/SimpleBLE
Cross-platform library for bluetooth low-energy
2023-05-04 06:54:25 +02:00

15 lines
620 B
Diff

the bluez lib doesn't expose any symbols for some reason, so manually do it for the used one
diff --git a/simplebluez/src/Device.cpp b/simplebluez/src/Device.cpp
index e03957c..c62817b 100644
--- a/simplebluez/src/Device.cpp
+++ b/simplebluez/src/Device.cpp
@@ -53,7 +53,7 @@ std::shared_ptr<Characteristic> Device::get_characteristic(const std::string& se
return service->get_characteristic(characteristic_uuid);
}
-void Device::pair() { device1()->Pair(); }
+__attribute__ ((visibility ("default"))) void Device::pair() { device1()->Pair(); }
void Device::cancel_pairing() { device1()->CancelPairing(); }