Debian Codegraph @

xbmc/peripherals/bus/virtual/PeripheralBusCEC.h

raw
1 /*
2 * Copyright (C) 2005-2024 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9 #pragma once
10
11 #include "peripherals/bus/PeripheralBus.h"
12
13 // undefine macro isset, it collides with function in cectypes.h
14 #ifdef isset
15 #undef isset
16 #endif
17 #include <libcec/cectypes.h>
18
19 namespace CEC
20 {
21 class ICECAdapter;
22 }
23
24 namespace PERIPHERALS
25 {
26 class CPeripherals;
27
28 /*!
29 * \ingroup peripherals
30 */
31 class CPeripheralBusCEC : public CPeripheralBus
32 {
33 public:
34 explicit CPeripheralBusCEC(CPeripherals& manager);
35 ~CPeripheralBusCEC(void) override;
36
37 /*!
38 * @see PeripheralBus::PerformDeviceScan()
39 */
40 bool PerformDeviceScan(PeripheralScanResults& results) override;
41
42 private:
43 CEC::ICECAdapter* m_cecAdapter;
44 CEC::libcec_configuration m_configuration;
45 };
46 } // namespace PERIPHERALS