aboutsummaryrefslogtreecommitdiff
path: root/nimbluez/bluetooth.nim
diff options
context:
space:
mode:
authorElectric-Blue <Electric-Blue@users.noreply.github.com>2016-01-26 02:03:48 +0300
committerElectric-Blue <Electric-Blue@users.noreply.github.com>2016-01-26 02:03:48 +0300
commit0c4a1cc1c2083a871562364de5df4f9d88ec321e (patch)
treeddb8428845b663c078359eda4ec81bdcc157414f /nimbluez/bluetooth.nim
parent27a7a2a18a6db8b67cbe0e86c37cb174de2a1295 (diff)
downloadNimBluez-0c4a1cc1c2083a871562364de5df4f9d88ec321e.tar.gz
NimBluez-0c4a1cc1c2083a871562364de5df4f9d88ec321e.zip
First version.
Diffstat (limited to 'nimbluez/bluetooth.nim')
-rw-r--r--nimbluez/bluetooth.nim25
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