Merge pull request #26076 from notspiff/seekhandler_seektype_enum_class
[xbmc.git] / xbmc / platform / win10 / peripherals / PeripheralBusUSB.h
blob3f6e4dcc0e413ee6a9681ae25ed4386cc10d34ab
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "peripherals/bus/PeripheralBus.h"
13 #include <setupapi.h> //needed for GUID
15 namespace PERIPHERALS
17 class CPeripherals;
19 class CPeripheralBusUSB : public CPeripheralBus
21 public:
22 CPeripheralBusUSB(CPeripherals &manager);
24 /*!
25 * @see PeripheralBus::PerformDeviceScan()
27 bool PerformDeviceScan(PeripheralScanResults &results);
29 private:
30 bool PerformDeviceScan(const GUID *guid, const PeripheralType defaultType, PeripheralScanResults &results);
31 bool GetProductAndVendorId(const PeripheralType type, const std::string &strDeviceLocation, int *iVendorId, int *iProductId);