mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 07:36:10 -04:00
Fix BluetoothAdapter bug to enable Bluetooth Classic Advertising
PiperOrigin-RevId: 456609115
This commit is contained in:
committed by
Copybara-Service
parent
7046d24dfe
commit
75aa59d57e
@@ -16,6 +16,7 @@
|
||||
#define PLATFORM_IMPL_WINDOWS_BLUETOOTH_ADAPTER_H_
|
||||
|
||||
#include <guiddef.h>
|
||||
#include <windows.h>
|
||||
|
||||
#include <functional>
|
||||
#include <string>
|
||||
@@ -77,6 +78,12 @@ class BluetoothAdapter : public api::BluetoothAdapter {
|
||||
// Returns BT MAC address assigned to this adapter.
|
||||
std::string GetMacAddress() const override;
|
||||
|
||||
// Returns bluetooth device name from registry
|
||||
std::string GetNameFromRegistry(PHKEY hKey) const;
|
||||
|
||||
// Returns computer name
|
||||
std::string GetNameFromComputerName() const;
|
||||
|
||||
void SetOnScanModeChanged(ScanModeCallback callback) {
|
||||
if (scan_mode_changed_ == nullptr) {
|
||||
scan_mode_changed_ = callback;
|
||||
|
||||
Reference in New Issue
Block a user