diff options
Diffstat (limited to 'nimbluez/bluetooth.nim')
| -rw-r--r-- | nimbluez/bluetooth.nim | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nimbluez/bluetooth.nim b/nimbluez/bluetooth.nim new file mode 100644 index 0000000..9a04cae --- /dev/null +++ b/nimbluez/bluetooth.nim @@ -0,0 +1,25 @@ +# Copyright (c) 2016, Maxim V. Abramov +# All rights reserved. +# Look at license.txt for more info. + +## This cross-platform module is used for discovery and managing Bluetooth +## devices and services. + +const useWinVersion = defined(Windows) or defined(nimdoc) + +when useWinVersion: + import bluetoothmsbt + + export BLUETOOTH_ADDRESS, BLUETOOTH_RADIO_INFO, BLUETOOTH_DEVICE_INFO + export ERROR_NO_MORE_ITEMS + +else: + import bluetoothbluez + + export bdaddr_t, inquiry_info + +export BluetoothDeviceLocalImpl, BluetoothDeviceLocal +export BluetoothDeviceRemoteImpl, BluetoothDeviceRemote +export getLocalDevice, getLocalDevices +export getRemoteDevice, getRemoteDevices +export address, name |
