From 0c4a1cc1c2083a871562364de5df4f9d88ec321e Mon Sep 17 00:00:00 2001 From: Electric-Blue Date: Tue, 26 Jan 2016 02:03:48 +0300 Subject: First version. --- nimbluez/bluetooth.nim | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 nimbluez/bluetooth.nim (limited to 'nimbluez/bluetooth.nim') 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 -- cgit v1.2.3