MythTV  master
mythdrmresources.h
Go to the documentation of this file.
1 #ifndef MYTHDRMRESOURCES_H
2 #define MYTHDRMRESOURCES_H
3 
4 // Qt
5 #include <QString>
6 
7 // MythTV
8 #include "libmythui/mythuiexp.h"
9 
10 // libdrm
11 extern "C" {
12 #include <xf86drm.h>
13 #include <xf86drmMode.h>
14 }
15 
16 // Std
17 #include <map>
18 #include <array>
19 #include <vector>
20 #include <memory>
21 
22 using DRMArray = std::array<uint32_t,4>;
23 
25 {
26  public:
27  MythDRMResources(int FD);
29  drmModeResPtr operator->() const;
30  drmModeResPtr operator*() const;
31 
32  private:
33  drmModeResPtr m_resources { nullptr };
34 };
35 
36 #endif
MUI_PUBLIC
#define MUI_PUBLIC
Definition: mythuiexp.h:9
MythDRMResources
A simple wrapper around a drmModeResPtr that ensures proper cleanup.
Definition: mythdrmresources.h:24
mythuiexp.h
DRMArray
std::array< uint32_t, 4 > DRMArray
Definition: mythdrmresources.h:22