aboutsummaryrefslogtreecommitdiff
path: root/nimbluez/bluetooth.nim
blob: 95a9a06bb6172acb288479a1b2e8f0183140a02b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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, classRaw