wifi_data_provider_common_win.h 880 B

123456789101112131415161718192021222324
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef SERVICES_DEVICE_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_WIN_H_
  5. #define SERVICES_DEVICE_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_WIN_H_
  6. #include <windows.h>
  7. #include <ntddndis.h>
  8. #include "services/device/geolocation/wifi_data_provider.h"
  9. namespace device {
  10. // Extracts access point data from the NDIS_802_11_BSSID_LIST structure and
  11. // appends it to the data vector. Returns the number of access points for which
  12. // data was extracted.
  13. int GetDataFromBssIdList(const NDIS_802_11_BSSID_LIST& bss_id_list,
  14. int list_size,
  15. WifiData::AccessPointDataSet* data);
  16. } // namespace device
  17. #endif // SERVICES_DEVICE_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_WIN_H_