aboutsummaryrefslogtreecommitdiff
path: root/nimbluez/bluetoothmsbt.nim
diff options
context:
space:
mode:
authorElectric-Blue <Electric-Blue@users.noreply.github.com>2016-02-01 00:03:45 +0300
committerElectric-Blue <Electric-Blue@users.noreply.github.com>2016-02-01 00:03:45 +0300
commitf626934b2115cfbeb18fb372ac340c47848da443 (patch)
treea5e93eeab5d235835e596a9e4dd239a793ebde34 /nimbluez/bluetoothmsbt.nim
parent48c3a10ccf6ddb82d2dffa063032f9c6e47d238f (diff)
downloadNimBluez-f626934b2115cfbeb18fb372ac340c47848da443.tar.gz
NimBluez-f626934b2115cfbeb18fb372ac340c47848da443.zip
Class of device for bluez.
Diffstat (limited to 'nimbluez/bluetoothmsbt.nim')
-rw-r--r--nimbluez/bluetoothmsbt.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/nimbluez/bluetoothmsbt.nim b/nimbluez/bluetoothmsbt.nim
index 35cdb14..ca0edbe 100644
--- a/nimbluez/bluetoothmsbt.nim
+++ b/nimbluez/bluetoothmsbt.nim
@@ -223,11 +223,11 @@ proc name*(device: BluetoothDeviceRemote): string =
return cast[WideCString](addr(buf)) $ BLUETOOTH_MAX_NAME_SIZE
-proc classRaw*(device: BluetoothDeviceLocal): uint32 =
- ## Returns raw class of remote Bluetooth device.
+proc classOfDevice*(device: BluetoothDeviceLocal): uint32 =
+ ## Returns class of local Bluetooth device.
result = device.fRadioInfo.ulClassofDevice
-proc classRaw*(device: BluetoothDeviceRemote): uint32 =
- ## Returns raw class of remote Bluetooth device.
+proc classOfDevice*(device: BluetoothDeviceRemote): uint32 =
+ ## Returns class of remote Bluetooth device.
result = device.fDeviceInfo.ulClassofDevice