summaryrefslogtreecommitdiffstats
path: root/device/bluetooth/bluetooth_init_win.h
blob: b3a505ed779c86d8f0116d0534d8fb6b71a57636 (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
26
27
28
29
30
31
32
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef DEVICE_BLUETOOTH_BLUETOOTH_INIT_WIN_H_
#define DEVICE_BLUETOOTH_BLUETOOTH_INIT_WIN_H_

// windows.h needs to be included before BluetoothAPIs.h.
#include <windows.h>

#include <BluetoothAPIs.h>
#include <delayimp.h>
#include <ws2def.h>
#include <ws2bth.h>

#include "device/bluetooth/bluetooth_export.h"

#pragma comment(lib, "Bthprops.lib")
#pragma comment(lib, "BluetoothApis.lib")

namespace device {
namespace bluetooth_init_win {

// Returns true if the machine has a bluetooth stack available. The first call
// to this function will involve file IO, so it should be done on an appropriate
// thread. This function is not thread-safe.
bool DEVICE_BLUETOOTH_EXPORT HasBluetoothStack();

}  // namespace bluetooth_init_win
}  // namespace device

#endif  // DEVICE_BLUETOOTH_BLUETOOTH_INIT_WIN_H_