veyron/services/proximity/lib: Fix build on non-linux platforms.
Change-Id: I2093a1e3f9ff3ff189d5a4c5f7cdc0348d68836a
diff --git a/services/proximity/lib/scanner_linux.go b/services/proximity/lib/scanner_linux.go
index 197930b..b448320 100644
--- a/services/proximity/lib/scanner_linux.go
+++ b/services/proximity/lib/scanner_linux.go
@@ -9,7 +9,8 @@
"veyron/lib/bluetooth"
)
-// NewBluetoothScanner returns a bluetooth Scanner instance.
+// NewBluetoothScanner returns a Scanner instance that uses Low-Energy Bluetooth to scan
+// for nearby devices.
func NewBluetoothScanner() (Scanner, error) {
return &bluetoothScanner{}, nil
}
diff --git a/services/proximity/lib/scanner_other.go b/services/proximity/lib/scanner_other.go
index 68643c1..3eb299b 100644
--- a/services/proximity/lib/scanner_other.go
+++ b/services/proximity/lib/scanner_other.go
@@ -2,7 +2,10 @@
package proximity
-// NewBluetoothScanner returns a bluetooth Scanner instance.
+import "fmt"
+
+// NewBluetoothScanner always returns (nil, <error>) as bluetooth scanners
+// are not supported on this platform.
func NewBluetoothScanner() (Scanner, error) {
return nil, fmt.Errorf("bluetooth scanner not yet supported")
}